dot_clean

command module
v0.1.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2024 License: MIT Imports: 4 Imported by: 0

README

dot_clean

A cross-platform utility to clean "AppleSingle/AppleDouble" metadata files, also known as "dot underscore" or "dot underbar" files.

For example:

$ ls -a | cat
> .
> ..
> ._favicon.ico
> ._index.html
> ._robots.txt
> favicon.ico
> index.html
> robots.txt

These files are created by macOS on non-Apple filesystems, but they can be a nuisance and in many cases it's desirable to get rid of them.

This implementation aims to mimic the specific behavior of Apple's dot_clean command using the -m switch, which removes these files from a given directory and its children.

See DOT_CLEAN(1).

Getting Started

The suggested method of installation is to use Go's tooling to download and build from source.

Prerequisites
Installation
go install github.com/dthtvwls/dot_clean@latest

The dot_clean binary will be installed to ~/go/bin.

Usage

To recursively remove all dot underscore files from a directory:

dot_clean -m /path/to/directory

Windows paths also work:

dot_clean -m C:\path\to\directory

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL