class Pione::Util::FTPFileSystem
Public Instance Methods
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
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
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
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
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
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
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
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
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
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 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
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