-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create folder if it doesn't exist. #14
Comments
How?
The highlighted was confusing, can you please elaborate?
Not as a FTP commands: https://en.wikipedia.org/wiki/List_of_FTP_commands |
Hey thanks a lot for the response.
I first tried with a string list via ContentList and a for loop to check if an entry contains the dynamic variable. I encountered a problem that the list got too big for the memory I have available. But I found your answer to #11 I'm pretty sure there is a more elegant way, but this seems to work in the situations described above and doesn't use much memory. Thanks again. |
Sure that are better implementation, working with strings take a lot of memory, it would be better with char array, etc... FTP by definition have some limitations :) |
Hi,
I am trying to check if a folder exists and if not create it.
The folder structure is "/images/[imageset]/monochrome", "/images/[imageset]/color". As in /images/1/monochrome, /images/2/monochrome, ...
When uploading initially via
every the program works like expected.
But if I want to create a folder that already exists I get a "550" for each attempt to create a folder - even if the following folders do not exist. For example the folder /1/ exists but the folders /monocrome/ and /color/ do not exist - I still get 3 answers "550".
I tried to create a list and check if one of the strings in said list contains the respective expressions - no success.
Is there a way to check if a folder exists and then create it?
Or use the server message like ftp.changeworkdir; if (server message == 550 ) makedir?
Cheers
The text was updated successfully, but these errors were encountered: