#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2012
    Posts
    31
    Rep Power
    3

    Perl Script to FTP and Delete a folder.


    Hi

    I would like to delete a folder using FTP.

    I only have FTP access through the firewall to the FTP server.

    And I am looking a writting a perl script which will fTP and delete the folder which is less than 3 weeks old.

    I am not sure how would like delete the folder using FTP.

    If anyone has any suggestions would be great.

    Thanks
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Apr 2009
    Posts
    1,930
    Rep Power
    1225
    Have you looked at the Net::FTP module? It has a rmdir() method.

IMN logo majestic logo threadwatch logo seochat tools logo