lib/rest-ftp-daemon/path.rb in rest-ftp-daemon-0.400.0 vs lib/rest-ftp-daemon/path.rb in rest-ftp-daemon-0.410.0.pre.1
- old
+ new
@@ -6,10 +6,13 @@
attr_accessor :dir
def initialize full, strip_leading_slash = false
# Extract path parts
@name = extract_filename full.to_s
+
@dir = extract_dirname full.to_s
+ # puts "Path full.to_s: #{full.to_s}"
+ # puts "Path extract_dirname: #{@dir}"
# Remove leading slash if needed
strip_leading_slash_from_dir! if strip_leading_slash
end