Method: Train::File::Remote::Windows#size

Defined in:
lib/train/file/remote/windows.rb

#sizeObject



52
53
54
55
56
# File 'lib/train/file/remote/windows.rb', line 52

def size
  if file?
    @backend.run_command("((Get-Item '#{@spath}').Length)").stdout.strip.to_i
  end
end