Module: Ftpd::DiskFileSystem::Write
- Includes:
- FileWriting, TranslateExceptions
- Included in:
- Ftpd::DiskFileSystem
- Defined in:
- lib/ftpd/disk_file_system.rb
Overview
DiskFileSystem mixin providing file writing
Instance Method Summary collapse
-
#write(ftp_path, stream) ⇒ Object
Write a file to disk.
Methods included from TranslateExceptions
included, #translate_exception
Methods included from FileWriting
Instance Method Details
#write(ftp_path, stream) ⇒ Object
Write a file to disk. Called for:
-
STOR
-
STOU
If missing, then these commands are not supported.
165 166 167 |
# File 'lib/ftpd/disk_file_system.rb', line 165 def write(ftp_path, stream) write_file ftp_path, stream, 'wb' end |