Method: Train::Extras::WindowsFile#exist?
- Defined in:
- lib/train/extras/file_windows.rb
#exist? ⇒ Boolean
40 41 42 43 44 |
# File 'lib/train/extras/file_windows.rb', line 40 def exist? return @exist if defined?(@exist) @exist = @backend.run_command( "(Test-Path -Path \"#{@spath}\").ToString()").stdout.chomp == 'True' end |