in reply to Re: XMD5 and Net::FTP
in thread XMD5 and Net::FTP

well actually i am having a bit of another problem in which i have never had to deal with to much. i am recursively traversing directories in "$ENV{USERPROFILE}\\Files_to_sync\\". or in other words i am scanning all directories and sub directories for files in this directory. but i am having problems only uploading the files in sub directories inwhich it is wanting to upload C:/Users/username/Files to sync/folder/another folder/file.txt for example. i just want it to upload folder/another folder/file.txt.

i have setup a regex that strips the beginning of the path off to exactly what i need, but then i am having problems with file not found. is there a way to upload only what i am asking? or am i overlooking something simple. I can however upload single files from the "files to upload" folder, but i cannot upload empty subdirectories or sub directories with files ect ect.

can you give me an idea of what i need to do? because it seems like cwd is going to do the exact same thing i am trying to do which is return the exact cwd, but then somehow i got to upload only files and directories and sub directories in "files to upload" folder.

and thanks for the insight. i will def look into other methods as soon as i can understand this little predicament i am in. i have no problems building a fils/directories list and pushing it to an array, the problem comes in when i try to upload the regexed path/filename.

Replies are listed 'Best First'.
Re^3: XMD5 and Net::FTP
by flexvault (Monsignor) on Oct 15, 2014 at 16:55 UTC

    james28909,

    I'm not that up on Windows. *nix is my bag, so if no one else answers you, just ask this specific question as a new topic. Please also include the OS and version. While Perl is everywhere, how it interacts with the operating system may be very different.

    And again, Good Luck!

    Regards...Ed

    "Well done is better than well said." - Benjamin Franklin