# File lib/fog/storage/models/local/files.rb, line 14 def all requires :directory if directory.collection.get(directory.key) pwd = Dir.pwd Dir.chdir(connection.path_to(directory.key)) data = Dir.glob('**/*').reject do |file| ::File.directory?(file) end.map do |key| path = file_path(key) { :content_length => ::File.size(path), :key => key, :last_modified => ::File.mtime(path) } end Dir.chdir(pwd) load(data) else nil end end