Skip to content

dthtvwls/dot_clean

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages