class Pione::Util::FTPFileSystem

Public Instance Methods

delete_file(path) click to toggle source

Delete the file.

@param path [Pathname]

the path

@return [void]

# File lib/pione/util/ftp-server.rb, line 76
def delete_file(path)
  raise NotImplemented
end
directory?(path) click to toggle source

Return true if the path is a directory.

@param path [Pathname]

the path

@return [Boolean]

true if the path is a directory
# File lib/pione/util/ftp-server.rb, line 35
def directory?(path)
  raise NotImplemented
end
entries(path) click to toggle source

Return entries of the directory.

@param path [Pathname]

the path

@return [Pathname]

entry names
# File lib/pione/util/ftp-server.rb, line 106
def entries(path)
  raise NotImplemented
end
exist?(path) click to toggle source

Return true if the path is a directory or a file.

@param path [Pathname]

the path

@return [Boolean]

true if the path is a directory or a file
# File lib/pione/util/ftp-server.rb, line 25
def exist?(path)
  directory?(path) or file?(path)
end
file?(path) click to toggle source

Return true if the path is a file.

@param path [Pathname]

the path

@return [Boolean]

true if the path is a file
# File lib/pione/util/ftp-server.rb, line 45
def file?(path)
  raise NotImplemented
end
get_file(path) click to toggle source

Return content of the file.

@param path [Pathname]

the path

@return [String]

file content
# File lib/pione/util/ftp-server.rb, line 55
def get_file(path)
  raise NotImplemented
end
get_mtime(path) click to toggle source

Return mtime of the path. If the path doesn’t exist, return nil.

@param path [Pathname]

the path

@return [Time]

mtime
# File lib/pione/util/ftp-server.rb, line 96
def get_mtime(path)
  raise NotImplemented
end
get_size(path) click to toggle source

Return byte size of the path.

@param path [Pathname]

the path

@return [Integer]

byte size
# File lib/pione/util/ftp-server.rb, line 86
def get_size(path)
  raise NotImplemented
end
mkdir(path) click to toggle source

Make a directory at the path.

@param path [Pathname]

the path

@return [void]

# File lib/pione/util/ftp-server.rb, line 115
def mkdir(path)
  raise NotImplemented
end
mv(from_path, to_path) click to toggle source

Move file.

@param from_path [Pathname]

from path

@param to_path [Pathname]

to path

@return [void]

# File lib/pione/util/ftp-server.rb, line 135
def mv(from_path, to_path)
  raise NotImplemented
end
put_file(path, data) click to toggle source

Put the data into the path and return the byte size.

@param path [Pathname]

the path

@param data [Pathname]

data file path

@return [Integer]

byte size of the data
# File lib/pione/util/ftp-server.rb, line 67
def put_file(path, data)
  raise NotImplemented
end
rmdir(path) click to toggle source

Delete a directory at the path.

@param path [Pathname]

the path

@return [void]

# File lib/pione/util/ftp-server.rb, line 124
def rmdir(path)
  raise NotImplemented
end