Skip to content

oleh19127/Sorting-files-by-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

List of extension

  • Videos: mp4, mov, wmv, fly, avi, mkv, flv, mpg, webm, oog, m4p, m4v, qt, swf, avchd, f4v, mpeg-2

  • Images: png, jpg, webp, svg, gif, ico, jpeg, bmp, esp, jpeg 2000, heif, bat, cgm, tif, tiff, eps, raw, cr2, nef, orf, sr2

  • Music: mp3, aac, flac, alac, wav, aiff, dsd, pcm, m4a, wma

  • Documents: txt, doc, docx, docx, odt, xls, xlsx, ppt, pptx

  • Psd: psd

  • Pdf: pdf

  • Archive: zip, rar, 7z, tar

  • Torrent: torrent

  • Exe: exe

The program will sort the files in all subfolders of the folder where you put it

After start program

  • All files located in Sorted Files

  • All images files located in Sorted Files/year created file/Images/

  • All documents files located in Sorted Files/year created file/Documents/

  • All videos files located in Sorted Files/year created file/Videos/

  • All music files located in Sorted Files/year created file/Music/

  • All pdf files located in Sorted Files/year created file/Pdf/

  • All psd files located in Sorted Files/year created file/Psd/

  • All archive files located in Sorted Files/year created file/Archive/

  • All torrent files located in Sorted Files/year created file/Torrent/

  • All exe files located in Sorted Files/year created file/Exe/

  • All other files located in Other Files/extname/

  • All other files no extension located in Other Files/

  • All empty folders will be deleted

  • Possible to archive the Sorted Files and Other Files folders

Demo

Windows Demo

How to use

Windows

  1. Keep and download file(No virus) sort_windows.exe

  2. Place the program file in the folder with the files you want to sort

  3. Double click on file if not work Change file permission or Off real time protection on windows

  4. If you want to sort the files and automatically archive them, open terminal in the folder and write to the terminal: sort_windows.exe archive --all

Linux

  1. Download file sort_linux

  2. Place the program file in the folder with the files you want to sort

  3. Open terminal in the folder

  4. Change file permission: sudo chmod +x "full path to file(sort_linux)"

  5. Write in the terminal: ./sort_linux

  6. If you want to sort the files and automatically archive them, write to the terminal: ./sort_linux archive --all

If not work in you system

  1. Download Golang in offical site

  2. Download or copy files files

  3. Place the program file in the folder with the files you want to sort

  4. Open terminal or cmd in the folder

  5. Write in the terminal or cmd: go mod init sorty && go mod tidy && go build sort.go

  6. You can remove files: sort.go, linux.go, structureOfExtensions.go, windows.go, go mod, go.sum

  7. You can move the compiled file where you want and run it on your system