tomboulier / macleon

CLI command to remove AppleDouble files (starting with "._") in a directory

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MacLeon

Overview

MacLeon is a command-line utility designed to clean up AppleDouble files (._*) created by macOS when files are transferred to non-HFS file systems. Inspired by the meticulous "cleaner" from Luc Besson's film "Léon" and a wordplay combining Mac and the immortal Highlander McLeod, MacLeon helps maintain cleanliness in your directories by removing unnecessary metadata files that clutter shared volumes or external storage devices.

Features

  • Recursive Scanning: Effortlessly scans directories and their subdirectories for AppleDouble files.
  • Cross-platform Compatibility: Designed in Rust, MacLeon can be built and run on various operating systems, offering wide usability.
  • Simple CLI: Easy-to-use command-line interface, making it suitable for both beginners and advanced users.

wish-list

  • Safe Deletion: Safely removes ._* files, ensuring that only the unnecessary metadata files are deleted.
  • Dry Run Option: Preview which files would be deleted without actually removing them, perfect for validation before cleanup.

Getting Started

Prerequisites

Ensure you have Rust installed on your system. You can check your Rust installation by running:

rustc --version

If Rust is not installed, follow the instructions on the official Rust website to set it up.

Installation

Clone the repository:

git clone https://github.com/tomboulier/macleon.git

Navigate to the project directory:

cd macleon

Build the project:

cargo build --release

The executable will be located in ./target/release/macleon. Make it accesible to your PATH:

sudo mv target/release/macleon /usr/local/bin
sudo chmod +x /usr/local/bin/macleon

Verify the installation:

which macleon

Usage

To clean a directory and its subdirectories of AppleDouble files, simply run:

macleon /path/to/directory

About

CLI command to remove AppleDouble files (starting with "._") in a directory

License:MIT License


Languages

Language:Rust 100.0%