Class: Ftpd::ReadOnlyDiskFileSystem
- Inherits:
-
Object
- Object
- Ftpd::ReadOnlyDiskFileSystem
- Defined in:
- lib/ftpd/disk_file_system.rb,
lib/ftpd/read_only_disk_file_system.rb
Overview
A disk file system that does not allow any modification (writes, deletes, etc.)
Instance Method Summary collapse
-
#initialize(data_dir) ⇒ ReadOnlyDiskFileSystem
constructor
Make a new instance to serve a directory.
Methods included from DiskFileSystem::Read
Methods included from TranslateExceptions
included, #translate_exception
Methods included from DiskFileSystem::List
Methods included from DiskFileSystem::PathExpansion
#expand_ftp_path, #set_data_dir
Methods included from DiskFileSystem::Accessors
#accessible?, #directory?, #exists?
Constructor Details
#initialize(data_dir) ⇒ ReadOnlyDiskFileSystem
Make a new instance to serve a directory. data_dir should be an absolute path.
427 428 429 430 |
# File 'lib/ftpd/disk_file_system.rb', line 427 def initialize(data_dir) set_data_dir data_dir translate_exception SystemCallError end |