Method: Windows::File#chown
- Defined in:
- lib/beaker/host/windows/file.rb
#chown(user, path, recursive = false) ⇒ Object
Note:
Cygwin’s ‘chown` implementation does not support windows-, DOS-, or mixed-style paths, only UNIX/POSIX-style. This method simply wraps the normal Host#chown call with a call to cygpath to sanitize input.
23 24 25 26 |
# File 'lib/beaker/host/windows/file.rb', line 23 def chown(user, path, recursive=false) cygpath = execute("cygpath -u #{path}") super(user, cygpath, recursive) end |