Displaying 1 result from an estimated 1 matches for "messageftpmkdir".
2006 May 13
0
trouble with Dir.chdir
...dirpath = $tempdir + targetdir
Dir.chdir targetdirpath
begin
ftp = Net::FTP.open(fhostname,fusername,fuserpass)
@messageftpconnect = "connected"
rescue
@messageftpconnect = "failed"
end
ftp.chdir(fbasedir)
begin
ftp.mkdir(targetdir)
@messageftpmkdir = "the directory was created"
rescue
@messageftpmkdir = "the directory already exists"
end
ftp.chdir(targetdir)
Dir::glob("./*.jpg").each {|f|
ftp.put(f)
}
ftp.close
FileUtils.rm_rf(targetdirpath)
end
ftp_photo.rhtml
start ???<...