Giter VIP home page Giter VIP logo

afsctool's Introduction

High Sierra release: https://github.com/gingerbeardman/afsctool/releases/tag/10.13

NOTE: This is just a modestly tweaked mirror of someone else's code. I did not write and do not maintain this.

Source:
http://hints.macworld.com/article.php?story=20090902223042255
http://forums.macrumors.com/showthread.php?t=780570
http://files.me.com/brkirch/ijt4f7


Command line utility for identifying HFS+ compressed files and getting the sizes of them. Its output looks something like this:

$ afsctool -v /usr/local/bin/afsctool
/usr/local/bin/afsctool:
File is HFS+ compressed.
File size (uncompressed data fork; reported size by Mac OS 10.6+ Finder): 85372 bytes / 85 KB (kilobytes) / 83 KiB (kibibytes)
File size (compressed data fork - decmpfs xattr; reported size by Mac OS 10.0-10.5 Finder): 24417 bytes / 25 KB (kilobytes) / 24 KiB (kibibytes)
File size (compressed data fork): 24433 bytes / 25 KB (kilobytes) / 24 KiB (kibibytes)
Compression savings: 71.4%
Number of extended attributes: 0
Total size of extended attribute data: 0 bytes
Appoximate overhead of extended attributes: 536 bytes
Appoximate total file size (compressed data fork + EA + EA overhead + file overhead): 25376 bytes / 25 KB (kilobytes) / 25 KiB (kibibytes)

I've updated afsctool and added in place HFS+ compression for files and folders, just be warned that you should make a backup before attempting to use it as I haven't had a chance to extensively test it yet.

The in place compression seems not to have any significant issues, but if you are compressing anything important then always include the -k flag just to be safe.

afsctool's People

Contributors

alistairmcmillan avatar gingerbeardman avatar jrk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

afsctool's Issues

How to build?

I have never tried to build anything with cmake before... I tried cloning this project, and then just running cmake .. It says it built stuff:

daniel@air  ~/.apps/afsctool   master  cmake .
-- The C compiler identification is AppleClang 8.1.0.8020042
-- The CXX compiler identification is AppleClang 8.1.0.8020042
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /Users/daniel/Library/Homebrew/bin/pkg-config (found version "0.29.2")
-- Found ZLIB: /usr/lib/libz.dylib (found suitable version "1.2.8", minimum required is "1.2.8")
-- Checking for module 'libsparsehash'
--   No package 'libsparsehash' found
-- The following REQUIRED packages have been found:

 * ZLIB (required version >= 1.2.8)

-- Configuring done
-- Generating done
-- Build files have been written to: /Users/daniel/.apps/afsctool

However, no interesting binaries anywhere in the folder:

daniel@air  ~/.apps/afsctool   master  find -type f -executable
./.git/hooks/applypatch-msg.sample
./.git/hooks/commit-msg.sample
./.git/hooks/post-update.sample
./.git/hooks/pre-applypatch.sample
./.git/hooks/pre-commit.sample
./.git/hooks/pre-push.sample
./.git/hooks/pre-rebase.sample
./.git/hooks/pre-receive.sample
./.git/hooks/prepare-commit-msg.sample
./.git/hooks/update.sample
./CMakeFiles/3.9.0/CMakeDetermineCompilerABI_C.bin
./CMakeFiles/3.9.0/CMakeDetermineCompilerABI_CXX.bin
./CMakeFiles/3.9.0/CompilerIdC/a.out
./CMakeFiles/3.9.0/CompilerIdCXX/a.out
./CMakeFiles/feature_tests.bin
./CritSectEx/CritSectEx.h
./CritSectEx/msemul.cpp
./License.txt

How does one build this? Perhaps add this to the README?

Thanks :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.