Hoppa till huvudinnehållet
Till KTH:s startsida

Filsorterare

Link to .jar
Link to sorce code


Filesorter is a simple program that sorts your files on a computer. It will work on any windows machine, provided you can run Java. The data set is files, and could be any files (besides folders). The program will execute recursively and handle the dataset as a tree structure which gives the program excellent time complexity. It will traverse though every subfolder and every file in the directory and check the date of when the files were created. In this version, the application will check which year it was created, but this could easily be changed to another time interval, like quarter of year or month. It will then copy the file (I decided not to “cut and paste” due to the possibility of data loss) to a new folder named after the year it was created.  I rename every file with a number so the first file the program finds gets named “1” and the last picture gets named as the n:th number.