Removing non empty directory from ftp, ruby, Net::FTP -


i have project need remove non empty folders ftp server. have tried ftp.rmdir(), got error message stating

folder not empty

i tried moving directory ftp.rename() method, got same error message there.

does know way this?

you'll need delete files in directory first using mdelete

mdelete folder_name/*

then should able remove directory using rmdir

rmdir folder_name

source


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -