It would be great to be able to create the directory from within the FTP File Browser Node on creation.
Right now, we either create it first on the FTP directory, then put the path in.
Or, upload a file with tokens and make sure the naming is correct between the file directory and the path.

Is there a module or a simple php snippit to be able to create the directory? What if FTP Filebrowser could create the directory before saving?

Thanks

bredi

Comments

khalor’s picture

mkdir() is a fairly basic PHP function for creating directories... a somewhat dicey solution would be to just put /sites/all/ or similar (any accessible directory) in the path field when making a Filebrowser node, then use Rules to execute a PHP snippet (using mkdir) after it is created, possibly based on the title of the Filebrowser node. Then you'd need to write a db_query to modify the table containing the original path (/sites/all/) to point to your correct directory.

But, yeah, +1 to being able to do this within Filebrowser itself, both during node creation and when browsing a Filebrowser listing (with the correct permissions).

donquixote’s picture

+1
for folder creation, in both senses of #1.

Yoran’s picture

Status: Active » Fixed

Well this should be done in next -dev release.

dead_account_kill_it_please’s picture

Status: Fixed » Closed (fixed)