lib/rio/ftp/fs.rb in rio-0.4.0 vs lib/rio/ftp/fs.rb in rio-0.4.1

- old
+ new

@@ -77,11 +77,11 @@ wduri = uri.clone wduri.path = remote_rel wduri.to_s end def remote_path(url) - self.remote_root+URI(url).path + self.remote_root+RIO::RL.url2fs(URI(url).path) end def chdir(url,&block) if block_given? wd = conn.pwd conn.chdir(remote_path(url)) @@ -117,9 +117,10 @@ conn.delete(remote_path(url)) end def get_ftype(url) pth = remote_path(url) + #p url,pth ftype = nil begin conn.mdtm(pth) ftype = 'file' rescue Net::FTPPermError