Set file properties to readonly (Windows)

Is it possible to set a file to readonly with a julia command/script? I am using Windows.

https://github.com/JuliaLang/Pkg.jl/blob/a807815fc7dd443fb113cbb115c6a2f0ab2a0e25/src/utils.jl#L1-L13 can probably be used as inspiration.

2 Likes