Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Support Custom Folder Configuration for File Arrangement in "Arrange It" #299

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
DhanushNehru merged 3 commits into DhanushNehru:master from Stonebanks-js:master
Oct 8, 2024

Conversation

@Stonebanks-js
Copy link
Contributor

@Stonebanks-js Stonebanks-js commented Oct 5, 2024

Description

This pull request introduces a new feature to the arrangeit.py script, allowing users to customize folder arrangements and file extension mappings through an external config.json file. This change enhances the script's flexibility and user-friendliness.

Changes Made

Added config.json -

Created a new configuration file to store folder-extension mappings, making the script adaptable to different user needs.

Updated arrangeit.py -

Removed the hardcoded directory mapping and replaced it with dynamic loading of folder mappings from config.json.
Implemented error handling to manage cases where the config.json file is missing or incorrectly formatted.

Benefits

Increased Flexibility: Users can modify folder and extension mappings without altering the Python code.

Ease of Updates: Adding new file types or folders can be done by simply updating the config.json file.

User-Friendly: Non-technical users can easily modify how files are organized by editing a JSON file.
Improved Maintainability: The separation of configuration from code makes the codebase cleaner and easier to maintain.

@Stonebanks-js Stonebanks-js changed the title (削除) Support Custom Folder Configuration for File Arrangement #293 (削除ここまで) (追記) Support Custom Folder Configuration for File Arrangement in "Arrange It" (追記ここまで) Oct 5, 2024
Copy link
Contributor Author

Stonebanks-js commented Oct 6, 2024
edited
Loading

@DhanushNehru Take a look to it, and add hacktoberfest 2024 labels

@DhanushNehru DhanushNehru merged commit c1b5394 into DhanushNehru:master Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@DhanushNehru DhanushNehru DhanushNehru approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /