sizeExec doesn't resolve symlinks in bash
Closed this issue · 3 comments
vhalasu commented
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.
jkuchar commented
I'll test it on Linux Mint x64.
jkuchar commented
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