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 f783018 commit 4634882Copy full SHA for 4634882
lib/train/extras/file_windows.rb
@@ -51,6 +51,13 @@ def mounted
51
nil
52
end
53
54
+ def owner
55
+ owner = @backend.run_command(
56
+ "Get-Acl '#{@spath}' | select -expand Owner").stdout.strip
57
+ return if owner.empty?
58
+ owner
59
+ end
60
+
61
def type
62
if attributes.include?('Archive')
63
return :file
@@ -61,7 +68,7 @@ def type
68
69
70
%w{
64
- mode owner group uid gid mtime size selinux_label
71
+ mode group uid gid mtime size selinux_label
65
72
}.each do |field|
66
73
define_method field.to_sym do
67
74
0 commit comments