Class: GDSync::LocalFileSystem

Inherits:
FileSystem show all
Defined in:
lib/file_system/local_file_system.rb

Defined Under Namespace

Classes: Dir, File

Instance Method Summary collapse

Instance Method Details

#can_create_io_stream?Boolean


151
152
153
# File 'lib/file_system/local_file_system.rb', line 151

def can_create_io_stream?
  true
end

#find(path) ⇒ Object


155
156
157
158
159
160
161
162
163
164
165
# File 'lib/file_system/local_file_system.rb', line 155

def find(path)
  if ::File.exist?(path)
    if ::File.directory?(path)
      Dir.new(self, path)
    else
      File.new(self, path)
    end
  else
    nil
  end
end