We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
How can i create nested directories?
Already tried:
var folder = 'path/to/new/folder/ne/na/www'; var newfold; var splitedVal = folder.split('/'); function cret(val){ ftprocss.createFolder("/web/"+val,{ success:function(status){ // see the object info //alert(JSON.stringify(status)); if(status.created){ //alert("Folder created"); } }, error:function(er){ console.error(JSON.stringify(er)); } }); } for(var i=0;i<splitedVal.length;i++){ if(i == 0){ newfold = splitedVal[i]; //alert(newfold); cret(newfold); } else{ newfold = newfold + '/' + splitedVal[i]; //alert(newfold); cret(newfold); } }
but it only creates the 2 first levels of directories. Any Idea?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
How can i create nested directories?
Already tried:
but it only creates the 2 first levels of directories. Any Idea?
The text was updated successfully, but these errors were encountered: