Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/ftpd/disk_file_system.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ module PathExpansion
# data_dir should be an absolute path.

def set_data_dir(data_dir)
# ensure that the path always has a trailing '/' character to deal with
# issue 42.
data_dir << '/' unless data_dir.end_with?('/')
@data_dir = data_dir
end

Expand Down