We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a38adc commit 1d4ac6fCopy full SHA for 1d4ac6f
lib/train/extras/file_windows.rb
@@ -51,6 +51,14 @@ def mounted
51
nil
52
end
53
54
+ def owner
55
+ owner = @backend.run_command(
56
+ "Get-Acl '#{@spath}' | select -expand Owner"
57
+ ).stdout.strip
58
+ return if owner.empty?
59
+ owner
60
+ end
61
+
62
def type
63
if attributes.include?('Archive')
64
return :file
@@ -61,7 +69,7 @@ def type
69
70
71
%w{
- mode owner group uid gid mtime size selinux_label
72
+ mode group uid gid mtime size selinux_label
65
73
}.each do |field|
66
74
define_method field.to_sym do
67
75
0 commit comments