Skip to content

Conversation

@kleeena
Copy link

@kleeena kleeena commented Jul 19, 2025

This feature adds a '--dry-run' flag and will help preview file movements without changing anything. CLI includes the source of a file and its intended destination.

How to run?

python pysorta.py --dry-run

🛠️ Changes made

  • Added --dry-run flag to the deploy script using the sys library and the relevant logic to handle this mode.
  • Added to new functions: store_preview_info() and run_preview.
  • store_preview_info() stores data to preview using key:value pairs. Here key is the folder name and pair is the list of destination paths of files to be stored in that folder.
  • run_preview takes that organized dictionary that stores preview data and the source directory. It formats the CLI and displays the source path and intended destination path for files to be moved.

Fixes #2

This feature will help preview file movements without changing anything.

CLI includes the source of a file and its intended destination.

Fixes theProject#2
@kleeena
Copy link
Author

kleeena commented Aug 2, 2025

Hi @theProject , I’ve opened this PR to address issue #2 . Please let me know if you have any feedback or suggestions whenever you get the chance as I'm really looking forward to contribute. Thanks! 🌻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add --dry-run mode to preview file movements without actually changing anything

1 participant