kreateer / automatic-file-sorter Goto Github PK
View Code? Open in Web Editor NEWA small program that automatically moves and sorts files based on user input
License: MIT License
A small program that automatically moves and sorts files based on user input
License: MIT License
NOTE: This Issue will remain Open and accept any number of contributions until decided otherwise**
When the user enables this option in the GUI window, the program needs to read through the chosen source directory and move/copy each found file to a separate sub folder within the destination directory, based on file type
If there are no (more) files in the source directory, the program should show an Error to the user, notifying them of this
This option should be hidden until the user enables the 'Sort by Type' option, as it is directly tied to it. With PySimpleGUI, this can be done by specifying a key
value for a Frame
element and using the hidden
parameter
Please describe the issue in detail here.
Pressing the cancel button on either the source or destination folders does not exit the program as expected, but instead continues as if the user had provided a valid folder. Upon clicking 'OK' on the main options menu, however, the program will crash with the following stack trace (line numbers may be slightly off):
Traceback (most recent call last):
File "fmain.py", line 245, in <module>
main_gui.main_window()
File "fmain.py", line 68, in main_window
run_fmover.filemover(values['OPERATION'], None, values['OVERWRITE'])
File "fmain.py", line 143, in filemover
num_files = len(os.listdir(get_path('src')))
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'None'
Describe the solution you'd like to implement
Simply checking if the user had pressed cancel at that menu and acting accordingly would solve this issue, but I've never used PySimpleGUI before and don't know how they implement everything.
Description of the Issue
Additional details
After the program iterates through files within the chosen source directory, it should ask the user whether to skip over unknown file types or add them as known file types
If user chooses to skip the files with unknown file types, the program should resume and move/copy all other found files
If user chooses to add the unknown file types to memory, the program should save the new file types into a list and resume to move/copy them along with all the other files
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.