feedback icon indicating copy to clipboard operation
feedback copied to clipboard

Retain file mode on artifacts

Open moensch opened this issue 7 years ago • 0 comments

Steps to reproduce:

touch somefile
chmod 0700 somefile
buildkite-agent artifact upload somefile
rm -f somefile
buildkite-agent artifact download somefile .
stat somefile

File mode will have changed.

Is there any way the artifact cli could be extended to record the original file mode.. somewhere? Maybe this could even just be built on top of the meta-data service? Store the octal file mode in /internal-meta-data/filemodes/<path-to-artifact>?

moensch avatar Sep 25 '18 07:09 moensch