diff --git a/src/cli/one_helper/oneimage_helper.rb b/src/cli/one_helper/oneimage_helper.rb index 177e23a0e7..068a417a85 100644 --- a/src/cli/one_helper/oneimage_helper.rb +++ b/src/cli/one_helper/oneimage_helper.rb @@ -86,10 +86,10 @@ class OneImageHelper < OpenNebulaHelper::OneHelper path=Dir.pwd+"/"+o end - if File.exist?(path) + if File.readable?(path) [0, path] else - [-1, "File '#{path}' does not exist."] + [-1, "File '#{path}' does not exist or is not readable."] end end },