fartagaintuxedo
fartagaintuxedo

Reputation: 749

How to delete an empty folder in my ftp with ruby Net::FTP?

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

Answers (1)

Mark Thomas
Mark Thomas

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

Related Questions