Skip to content
This repository was archived by the owner on Dec 28, 2025. It is now read-only.

Commit a6741f9

Browse files
committed
Prerelease for beta
Prerelease
1 parent 095ca12 commit a6741f9

File tree

2 files changed

+31
-31
lines changed

2 files changed

+31
-31
lines changed

README.md

Lines changed: 16 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,32 @@
1-
21
# Open File Mover CLI
3-
#### V1.0.1-Alpha
2+
#### V1.0.1-Beta-Prerelease
43

54
[![Unlicense](https://img.shields.io/badge/License-Unlicense-blue.svg)](https://unlicense.org/)
65
[![Python 3](https://img.shields.io/badge/python-3.x-blue.svg)](https://www.python.org/downloads/)
76

7+
🎯 Say goodbye to repetitive drag-and-drop drudgery!
88

9-
🎯 Say goodbye to repetitive drag-and-drop drudgery.
10-
11-
Open File Mover is a simple python script that allows you to do three things:
12-
1. **Move folders through the command line**
13-
2. **Empty out your recylce bin through the command line.**
14-
3. **Empty your downloads folder through the command line.**
15-
16-
17-
9+
Open File Mover is a simple Python script that lets you do three things:
10+
1. **Move folders via the command line**
11+
2. **Empty your recycle bin using the command line**
12+
3. **Clear your downloads folder through the command line**
1813

19-
## Download
14+
## Building Instructions in Three Easy Steps
2015

16+
1. **Install Python 3**: Ensure Python 3 is installed on your system.
17+
2. **Install the winshell dependency**: You need the `winshell` package for this program to work. Install it by running `pip install winshell` in your terminal.
18+
3. **Run the script**: Navigate to the `src` folder and execute `python main.py 'insert your command here'` to start using the tool.
2119

22-
# Contributing to Open File Mover CLI
20+
## Contributing to Open File Mover CLI
2321

24-
We warmly welcome contributions to the **Open File Mover CLI** project! The current maintainer, **@AustinCGomez**, is excited to collaborate with you. Follow these steps to contribute and become part of our vibrant open-source community:
22+
We warmly welcome contributions to the **Open File Mover CLI** project! The current maintainer, **@AustinCGomez**, is excited to collaborate with you. Follow these steps to contribute and join our vibrant open-source community:
2523

26-
## How to Contribute
24+
### How to Contribute
2725

28-
1. **Find an Issue**: Browse the [Issues tab](https://github.com/your-repo/open-file-mover-cli/issues) to find an available task that interests you.
26+
1. **Find an Issue**: Visit the [Issues tab](https://github.com/your-repo/open-file-mover-cli/issues) to find a task that interests you.
2927
2. **Claim the Task**: Comment on the issue to express your interest in working on it. Wait for confirmation from the maintainer (@AustinCGomez) to ensure the task is available.
30-
3. **Submit a Pull Request**: Create a pull request (PR) with your changes. Ensure your code is well-documented and follows the project's guidelines.
31-
4. **Code Review**: The maintainer will thoroughly review and test your code. You may receive feedback or recommendations for refactoring.
28+
3. **Submit a Pull Request**: Create a pull request (PR) with your changes. Ensure your code is well-documented and adheres to the project's guidelines.
29+
4. **Code Review**: The maintainer will review and test your code thoroughly. You may receive feedback or suggestions for refactoring.
3230
5. **Celebrate**: Once your PR is approved and merged, enjoy the thrill of contributing to open-source software! Your name will be added to the contributors list below.
3331

3432
## Acknowledgments
@@ -43,8 +41,3 @@ A huge thank you to all our contributors who have made **Open File Mover CLI** b
4341
- @malikrohail
4442

4543
Join us in making **Open File Mover CLI** even better! 🚀
46-
47-
48-
49-
50-

src/main.py

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,14 @@
2828
import argparse
2929
import sys
3030
from pathlib import Path
31-
from tkinter import filedialog
32-
import tkinter as tk
3331
import winshell
3432
import ctypes
3533

3634
def cli_commands():
3735
parser = argparse.ArgumentParser(description="These are the current commands for the program to function.")
38-
parser.add_argument("--move-folder", nargs=2, metavar=("SRC","DEST"), help="Move a folder from Source to Destination")
39-
parser.add_argument("--empty-recycle", action="store_true",help="This command will empty the recycle bin on Windows systems.")
40-
parser.add_argument("--empty-downloads", action="store_true", help="This command will empty the download folders on Windows systems.")
36+
parser.add_argument("-mf", "--move-folder", nargs=2, metavar=("SRC","DEST"), help="Move a folder from Source to Destination")
37+
parser.add_argument("-er", "--empty-recycle", action="store_true",help="This command will empty the recycle bin on Windows systems.")
38+
parser.add_argument("-ed","--empty-downloads", action="store_true", help="This command will empty the download folders on Windows systems.")
4139
return parser
4240

4341
#This function will log activity to a .txt file for the user to review anytime that they want or need.
@@ -47,10 +45,11 @@ def activity_logger():
4745

4846

4947
def show_banner():
48+
5049
"""Display program banner"""
5150
print("=" * 60)
5251
print(" Open File Mover CLI")
53-
print(" Version 1.0.1-Alpha")
52+
print(" Version 1.0.1-Beta-Prerelease")
5453
print("=" * 60)
5554
print()
5655

@@ -87,7 +86,11 @@ def move_folder(source_dir, dest_dir):
8786
return False
8887

8988
def empty_recycle():
90-
winshell.recycle_bin().empty(confirm=False, show_progress=True, sound=True)
89+
try:
90+
winshell.recycle_bin().empty(confirm=False, show_progress=True, sound=True)
91+
print("Success!")
92+
except:
93+
print("Your recycle bin is already empty.")
9194

9295
def empty_downloads():
9396
downloads_path = os.path.join(os.path.expanduser("~"), "Downloads")
@@ -132,9 +135,13 @@ def main():
132135
empty_recycle()
133136
if args.empty_downloads:
134137
empty_downloads()
138+
if not any(vars(args).values()):
139+
parser.print_help()
140+
exit()
135141

136142
else:
137-
print("Please run the program as an administrator.")
143+
print("ERROR: Oops! This project needs superpowers to run. Please launch it as an administrator to unlock its full potential!")
144+
print("EXITING!")
138145

139146
except TypeError:
140147
print("Please run --help or read the documentation on our github for troubleshooting.")

0 commit comments

Comments
 (0)