Discussion:
Stat output for %N
(too old to reply)
darken
2017-05-13 02:38:07 UTC
Permalink
Raw Message
Using
stat -c "%a:%F:%d:%i:%u:%g:%s:%B:%b:%Z:%N",
the output is usually like this:
770:directory:24:5546467:0:9997:8192:512:24:1494593733:`/storage/emulated/0/Download'

but on some devices the output is
770:directory:21:260813:10259:1028:4096:512:8:1487106302:/storage/emulated/0/Android/data/au.com.shiftyjelly.pocketcasts

note the difference in quotes around the filepath. Both items are
directories.

Why the format difference?

~Matthias
enh
2017-05-13 03:25:07 UTC
Permalink
Raw Message
the one without the quotes is busybox.

quotes is either GNU or toybox.
Post by darken
Using
stat -c "%a:%F:%d:%i:%u:%g:%s:%B:%b:%Z:%N",
770:directory:24:5546467:0:9997:8192:512:24:1494593733:`/storage/emulated/0/Download'
but on some devices the output is
770:directory:21:260813:10259:1028:4096:512:8:1487106302:/storage/emulated/0/Android/data/au.com.shiftyjelly.pocketcasts
note the difference in quotes around the filepath. Both items are
directories.
Why the format difference?
~Matthias
_______________________________________________
Toybox mailing list
http://lists.landley.net/listinfo.cgi/toybox-landley.net
--
Elliott Hughes - http://who/enh - http://jessies.org/~enh/
Android native code/tools questions? Mail me/drop by/add me as a reviewer.
darken
2017-05-13 13:10:07 UTC
Permalink
Raw Message
That was it.
I accidentally called stat by "stat" instead of "/path/to/toybox stat"
which meant on some devices it used a different stat applet (probably
busybox).
Post by enh
the one without the quotes is busybox.
quotes is either GNU or toybox.
Post by darken
Using
stat -c "%a:%F:%d:%i:%u:%g:%s:%B:%b:%Z:%N",
770:directory:24:5546467:0:9997:8192:512:24:1494593733:`/
storage/emulated/0/Download'
Post by darken
but on some devices the output is
770:directory:21:260813:10259:1028:4096:512:8:1487106302:/
storage/emulated/0/Android/data/au.com.shiftyjelly.pocketcasts
Post by darken
note the difference in quotes around the filepath. Both items are
directories.
Why the format difference?
~Matthias
_______________________________________________
Toybox mailing list
http://lists.landley.net/listinfo.cgi/toybox-landley.net
--
Elliott Hughes - http://who/enh - http://jessies.org/~enh/
Android native code/tools questions? Mail me/drop by/add me as a reviewer.
Loading...