Class: GDSync::FileSystem

Inherits:
Object
  • Object
show all
Defined in:
lib/file_system.rb

Overview

Abstract class that represents filesystem.

Defined Under Namespace

Classes: AbstractDir, AbstractFile, NotSupportedError

Instance Method Summary collapse

Instance Method Details

#can_create_io_stream?Boolean

Return true if this filesystem can create [IO] objects for file read/write.

Returns:

  • (Boolean)

155
156
157
# File 'lib/file_system.rb', line 155

def can_create_io_stream?
  raise 'abstract method "can_create_read_io?" called'
end

#find(path) ⇒ AbstractFile

Find file or directory.

Parameters:

  • path (String)

Returns:


162
163
164
# File 'lib/file_system.rb', line 162

def find(path)
  raise 'abstract method "find" called'
end