Method: Train::Extras::WindowsFile#owner

Defined in:
lib/train/extras/file_windows.rb

#ownerObject



54
55
56
57
58
59
# File 'lib/train/extras/file_windows.rb', line 54

def owner
  owner = @backend.run_command(
    "Get-Acl '#{@spath}' | select -expand Owner").stdout.strip
  return if owner.empty?
  owner
end