-
Notifications
You must be signed in to change notification settings - Fork 104
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
Duplicate sub folders being shown #19
Comments
Can you provide me with some sample code so I can replicate this? |
My connector:
|
Please look at #23 and #24 as I believe it is all connected. You can replicate this by doing the following: In the root bucket, create a directory (using the GCS console) then upload a file into the new directory. In elFinder, you will now see two directories under the main root bucket, with the same name. One will contain the file you uploaded, the other will be empty. I believe this issue and the two I linked are all related. Basically, the adapter is not recognising directories properly and simply normalises then to be files (if you change the Clearly some bugs here. |
Below is a basic fix for the issue. It will need testing but seems to work for me.
|
Is this related to #23 With that proposed fix of mine in place, it seems to be resolved: $filesystem->createDir('zzzz');
$filesystem->put('zzzz', 'hello world');
var_dump($filesystem->listContents());
array(2) {
[0]=>
array(8) {
["type"]=>
string(4) "file"
["dirname"]=>
string(0) ""
["path"]=>
string(5) "zzzzz"
["timestamp"]=>
int(1463658746)
["mimetype"]=>
string(10) "text/plain"
["size"]=>
string(2) "11"
["basename"]=>
string(5) "zzzzz"
["filename"]=>
string(5) "zzzzz"
}
[1]=>
array(8) {
["type"]=>
string(3) "dir"
["dirname"]=>
string(0) ""
["path"]=>
string(5) "zzzzz"
["timestamp"]=>
int(1463658744)
["mimetype"]=>
string(10) "text/plain"
["size"]=>
string(1) "0"
["basename"]=>
string(5) "zzzzz"
["filename"]=>
string(5) "zzzzz"
}
} |
Yes, it is related, I didn't realise at the time :) |
Fixed in release 1.0.4 - https://github.com/Superbalist/flysystem-google-storage/releases/tag/1.0.4 |
I have a bucket with some nest folders and I am getting duplication for some reason eg:
The text was updated successfully, but these errors were encountered: