You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Every now and then I run into the situation of figuring out the owner of a particular file or directory, and using java interop is a little bit clunky - my first naive implementation is something like this:
Since fs already has nice abstractions over LinkOption and Paths, it seems like a nice fit to add the higher level utilty of file-owner here as well, and end up with something like:
(fs/file-owner "/some/path/or/file")
I'm attaching a drafted PR that explains the intent: #98
The text was updated successfully, but these errors were encountered:
Use JVM system property user.name to figure out who the process owner
is, then compare that to both the owner of the home directory and a
temporary file created in process, which both should be the process
owner.
Every now and then I run into the situation of figuring out the owner of a particular file or directory, and using java interop is a little bit clunky - my first naive implementation is something like this:
Since
fs
already has nice abstractions overLinkOption
andPaths
, it seems like a nice fit to add the higher level utilty offile-owner
here as well, and end up with something like:I'm attaching a drafted PR that explains the intent: #98
The text was updated successfully, but these errors were encountered: