Skip to content

Move files into appropriate folders according to their extensions

License

Notifications You must be signed in to change notification settings

jstmm/file-organizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File Organizer

Move files into appropriate folders according to their extensions (eg: *.jpeg into Images).

Use make or the task in the .vscode to build the project, then build/file_organizer <folder path>.

Try with build/file_organizer test_directory and reset the tests file with make clean.

$ build/file_organizer test_directory
test_directory/document.txt --> test_directory/Documents/document.txt
test_directory/video.mp4 --> test_directory/Videos/video.mp4
test_directory/music.mp3 --> test_directory/Music/music.mp3
test_directory/archive.zip --> test_directory/Archives/archive.zip
test_directory/image.jpg --> test_directory/Images/image.jpg
Files organized successfully!

Also handles duplicate file names

$ build/file_organizer test_directory
test_directory/music.mp3 --> test_directory/Music/music(1).mp3
Files organized successfully!

About

Move files into appropriate folders according to their extensions

Resources

License

Stars

Watchers

Forks