-
Notifications
You must be signed in to change notification settings - Fork 355
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
[ftp] problem with folders with spaces #285
Comments
I think |
I tried to quote the directory name for |
per php manual
so |
could you try sorrounding the path with single quotes? |
per https://bugs.php.net/bug.php?id=15231 it could also help to escape the space with |
I looked into php source code there are no additional handlers for commands. I suspect it depends on the implementation of commands ftp server. As a result |
This lib looks great and probably fix the problem. We should maybe implement it. cc @l3l0 |
This library does not escape its argument either. So it suffers from the same issues than the PHP extension. the only difference is that it is written in PHP rather than C. |
// looks like this works
ftp_chdir($conn, 'directory with spaces');
$files = ftp_nlist($conn, '');
$files = ftp_rawlist($conn, ''); // also working for me |
hi, Working solution
|
@php-dedicated-developers I'm unable to reproduce this bug with an up-to-date Gaufrette and vsftpd. Could you provide more details please? For instance, what OS do you use on your FTP server, and on the server/computer running Gaufrette? Also, what FTP server do you use? Which version?... |
ftp_rawlist() function returns empty result if there is a folder with space.
You can use ftp_nlist() which does not have this problem.
The text was updated successfully, but these errors were encountered: