see the attachments
dd

dd

CommentFileSizeAuthor
Screenshot from 2012-06-21 16:18:52.png38.68 KBrogical
1.png33.38 KBrogical
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rogical’s picture

only directory without prefix like 'test4' can be created successfully.

modify the directory to '/opt/ftp/test4' on editing container is also successful.

jbrown’s picture

This may be a problem with the FTP server software.

rogical’s picture

I'm using vsftpd under ubuntu

jbrown’s picture

Is this something that needs fixed - or should it just say that it needs to be a relative directory?

rogical’s picture

It only fails on new create, it works on editing - change the path to a absolute path already existed.

I temporarily solve this by input a path like 'test', then modify it to '/opt/ftp'.

jbrown’s picture

Component: User interface » Code
Status: Active » Needs work

Yes - it tries to enter each sub-directory, creating it if necessary. This does not work if it cannot enter a lower sub-directory, even if it can enter a higher one. This needs to be fixed.

An easier way to work around this might be to try the 'already exists' setting when creating a container.

rogical’s picture

Sounds good, uses should be used to setup ftp directory already, then just input settings in drupal.

30equals’s picture

I ran into this as well. I had to state the full path of the directory which needed to be created.
Why not add an input field where you can set the path to the directory (for instance 'directory path' or something) ?
This would mean you need to add this for example in the private function CreateDirectoryRecursive before creating it. So there's a bit more clarity while providing the ftp settings.

$this->changeDirectory($this->settings['directory_path']);

I don't know, just thinking out loud ;)

Perignon’s picture

Issue summary: View changes
Status: Needs work » Fixed

If still an issue please reopen this ticket and we will take a look at it!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.