Python Forum
Search for files and copy them to different location
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Search for files and copy them to different location
#5
Rather have folder1 and the file.txt in that

Or can something be written to create the whole path over to the new location. Only creating the folders and moving the file.txt?

Original location: folder1/folder2/folder3/folder4/file.txt
then the program runs and creates the folder path and moves the files in question.
Reply


Messages In This Thread
RE: Search for files and copy them to different location - by jayser247 - Apr-25-2020, 12:50 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Why is the copy method name in python list copy and not `__copy__`? YouHoGeon 2 329 Apr-04-2024, 01:18 AM
Last Post: YouHoGeon
  Copy Paste excel files based on the first letters of the file name Viento 2 504 Feb-07-2024, 12:24 PM
Last Post: Viento
  Create new folders and copy files cocobolli 3 1,562 Mar-22-2023, 10:23 AM
Last Post: Gribouillis
  Copy only hidden files and folders with rsync Cannondale 2 1,077 Mar-04-2023, 02:48 PM
Last Post: Cannondale
  Search multiple CSV files for a string or strings cubangt 7 8,244 Feb-23-2022, 12:53 AM
Last Post: Pedroski55
  Compare filename with folder name and copy matching files into a particular folder shantanu97 2 4,593 Dec-18-2021, 09:32 PM
Last Post: Larz60+
  Search string in mutliple .gz files SARAOOF 10 7,056 Aug-26-2021, 01:47 PM
Last Post: SARAOOF
  how search files Ron_Crafter 4 55,003 Apr-17-2021, 11:19 AM
Last Post: Ron_Crafter
  Merging all file_name.log's files from directory to one and search “PerformanceINFO" sutra 0 1,814 Dec-09-2020, 05:14 PM
Last Post: sutra
  Copy files from subfolders into same name of subfolders at other directory rathoreanil 1 2,413 Oct-12-2020, 01:30 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020