Skip to content

Denisolt/classifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Classifier

The constant feeling of messy files (especially in Downloads folder) annoys everyone. script will look for the extensions of the files in the folder and organize them accordingly into 7 sections:

  • text
  • data
  • audio
  • video
  • images
  • archives
  • developer

if no extension was found, then it throws the file into filder called 'other'.

The extensions include:

Text extensions:

'txt' 'doc' 'docx' 'log' 'msg' 'odt' 
'pages''rtf' 'tex' 'wpd' 'wps'

Data extensions:

'csv' 'dat' 'ged' 'key' 'keychain' 'pps' 'ppt' 'pptx' 'sdf'
'tar' 'tax2016' 'vcf' 'xml' 'xlr' 'xls' 'xlsx'

Audio extensions:

'3g2' '3gp' 'asf' 'avi' 'flv' 'm4v' 'mov' 'mp4' 
'mpg' 'rm' 'srt' 'swf' 'vob' 'wmv'

Image extensions:

'3dm' '3ds' 'max' 'obj' 'bmp' 'dds' 'gif' 'jpg' 'png' 
'psd' 'pspimage' 'tga' 'thm' 'tif' 'tiff' 'yuv' 'ai' 'svg'

Archives extensions:

'7z' 'cbr' 'deb' 'gz' 'pkg' 'rar' 'rpm' 
'sitx' 'tar' 'gz' 'zip' 'zipx'

Developer extensions:

'c' 'javac' 'cpp' 'cs' 'dtd' 'fla' 'h' 'java' 'lua' 'm'
'pl' 'py' 'sh' 'sln' 'swift' 'vb' 'vcxproj' 'xcodeproj'

Challenges:

  • Unfortunately Bash below version 4 does not support (,, for lower case, so I had to add the extensions both with capital and lower case letters)
  • Have to add few lines so you can run the code through passing a path

About

Script for classifying your messy directories

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages