Skip to content

A small program that allows you to transfer files with a certain ending you define that are in a folder tree to a destination folder

License

Notifications You must be signed in to change notification settings

Mrfactotum/Filecopier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

README for Filecopier.py

Summary:

File copier is a small program written in Python 3 which allows you to transfer certain file extensions from a tree of folders and subdirectories to a destination folder.

Dependencies:

Filecopier uses the following modules that come with Python 3: os shutil

What can I use it for?

Imagine you have hundreds of excel files mixed in with word documents, photos and other files nested in many folders. This program allows you to search through a directory tree and pull out all the files ending with a certain file name.

Usage Example: Open filecopier in a text editor Edit the following lines:

#replace "(/source-directory/") with the parent folder you want to copy from. source_directory = ("source-directory")

#replace "destination-directory" with the path to your destination destination_directory = ("destination-directory")

#Replace ('.txt') in if f.endswith('.txt') #with the file ending of your choice. if f.endswith('.txt'):

Run the program

LICENSING: This program is distrubted with an MIT License the full text of which can be found under the License document.

December 2017

About

A small program that allows you to transfer files with a certain ending you define that are in a folder tree to a destination folder

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages