Skip to content

drazulay/turdmaster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💩 turdmaster

Functions to delete Mac OSX filesystem turds

Cornholio

What are Mac OSX filesystem turds?

Turds are filesystem artefacts on Mac OSX that start with . and are created by the OS to hold extra filesystem attributes supported by HFS+ or other OSX-specific metadata.

Specifically, they are the files:

  • .DocumentRevisions-V100;
  • .Spotlight-V100;
  • .TemporaryItems;
  • .Trashes;
  • .fseventsd;
  • Any file that starts with ._ and of which the first 16 header bytes translates to the hexadecimal string 00051607000200004d6163204f532058.

When moving to linux or windows, or deploying files to a server, these turds are of no value.

is_turd

Checks whether a file is a turd and exits with status 0 if true or 1 if false (for use in pipe).

dump_turd

Checks whether a file is a turd and removes it if so.

dump_turds

Searches a path for turds and removes them.

Installation

Just put the scripts in your ${HOME}/.bin folder or put them in ${HOME}/.bin/turdmaster - make sure the one you use is added to the PATH variable in your shell's rc file.

About

Functions to delete Mac OSX filesystem turds

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages