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.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.