Closed krader1961 closed 1 year ago
I should also mention that my original motivation for this command was to make it easier to unit test related commands such as the path:chmod
I have in my pipeline of path
module changes to resolve #1659.
Closing until the os
module is introduced after which I will reinstate this change.
In theory the
path:stat
command introduced by this change allows an Elvish implementation of something like the Unixls
, or Windowsdir
, command. More importantly, it provides a more general API than builtins likepath:is-dir
andpath:is-regular
. Making it possible to test many other path attributes. I didn't deprecate those related commands because they are probably used often enough it doesn't make sense to deprecate them.Related: #1659