Filemode() / stat().mode: How to interpret the resulting UInt64-number

Julia has a builtin for that, although it is not exported

julia> Base.Filesystem.filemode_string(filemode(“error.png”))
“-rw-rw-rw-”

It’s in here if you want the code

https://github.com/JuliaLang/julia/blob/master/base/stat.jl

1 Like