jkuchar/BigFileTools

sizeExec doesn't resolve symlinks in bash

Closed this issue · 3 comments

Solution for bash is to add -L switch, e.g. $size = trim(exec("stat -Lc%s $escapedPath"));

I cannot test it with any other shell or Mac.

I'll test it on Linux Mint x64.

I also don't have a Mac, however accrding to manual pages it should work: https://developer.apple.com/library/mac/documentation/Darwin/Reference/Manpages/man1/stat.1.html

Commited, fixed

pushed: 8964448