Reputation: 749
The method Net::FTP.delete(filename)
works only for files, not directories, and there are no more delete methods in the documentation.
Not much to add to that.. seems like ruby ftp could be better off with a few more methods?
Upvotes: 0
Views: 495
Reputation: 37517
The commands to create and delete directories are different from that of files.
To create a directory, use mkdir
and to remove one use rmdir
.
Upvotes: 2