lib/rbvmomi/vim/Datastore.rb
# Find the file's full path in the datastore (excluding datastore name)
# @params file [String]
# @return [String] of the file's path
Find the file's full path in the datastore (excluding datastore name)
Find the file ' s full path in the datastore ( excluding datastore name )
def find_file_path file
    results = files_in_sub(nil)
    results.each do |result|
      result.file.each do |file_info|
        return result.folderPath[/\[[^\]]*\] (.*)/, 1] if file == file_info.path
      end
    end
    fail "Could not find file"
  end
def find_file_path file results = files_in_sub ( nil ) results . each do | result | result . file . each do | file_info | return result . folderPath [ / \[ [^ \] ]* \]  (.*) / , 1 ] if file == file_info . path end end fail "Could not find file" end
Find the file's full path in the datastore (excluding datastore name)
Find the file ' s full path in the datastore ( excluding datastore name )
of the file's path
of the file ' s path
String
file
params
None