Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/r3c0ger/macosx-metadata-cleaner
Recursively search the current directory for .DS_Store files and __MACOSX directories and delete them.
https://github.com/r3c0ger/macosx-metadata-cleaner
dsstore mac macos macosx python windows
Last synced: 23 days ago
JSON representation
Recursively search the current directory for .DS_Store files and __MACOSX directories and delete them.
- Host: GitHub
- URL: https://github.com/r3c0ger/macosx-metadata-cleaner
- Owner: R3c0ger
- License: mit
- Created: 2024-07-30T16:25:49.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-09-01T02:58:12.000Z (3 months ago)
- Last Synced: 2024-10-04T21:48:46.246Z (about 1 month ago)
- Topics: dsstore, mac, macos, macosx, python, windows
- Language: Python
- Homepage: https://github.com/R3c0ger/macosx-metadata-cleaner
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Mac OS X Metadata Cleaner
English | 中文## Description
This tool is designed to recursively search the current directory and all its subdirectories for `.DS_Store` files and `__MACOSX` directories and delete them. After the cleanup process, a dialog box will display which files and directories have been removed.
## Usage
1. Download or compile the generated `macosx_metadata_cleaner.exe` executable file.
2. Place the executable file inside the folder that needs to be cleaned.
3. Just double-click the executable file and wait for the dialog box to show the list of deleted files.## Requirements
- Python 3.6+
- `venv` virtual environment
- `pyinstaller` for packaging
- UPX (optional, for reducing the size of the EXE file)## Setup
1. Create a virtual environment using `init_venv.bat` in this repository.
2. (Optional) Add `upx.exe` to `.\venv\Scripts\` to compress the executable file.
3. Run `build.bat` to generate the executable file.
**N.B.** If `upx.exe` is not provided, please delete `--upx-dir .\venv\Scripts\upx.exe ` in the `pyinstaller` command in `build.bat`.```bash
.\venv\Scripts\activate.bat && pyinstaller -Fw .\macosx_metadata_cleaner.py --upx-dir .\venv\Scripts\upx.exe -n macosx_metadata_cleaner
```
```bash
.\venv\Scripts\activate.bat && pyinstaller -Fw .\macosx_metadata_cleaner.py -n macosx_metadata_cleaner
```## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.