Skip to content
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

Removed placeholder when the directory is no longer empty #8644

Closed
cyberduck opened this issue Mar 6, 2015 · 2 comments
Closed

Removed placeholder when the directory is no longer empty #8644

cyberduck opened this issue Mar 6, 2015 · 2 comments
Assignees
Labels
enhancement low priority s3 AWS S3 Protocol Implementation wontfix

Comments

@cyberduck
Copy link
Collaborator

9837c06 created the issue

Since S3 has no notion of directories, Cyberduck seems to be creating an empty file when you use the "new folder" command. Using the AWS-CLI (can install with homebrew, run "aws configure" after you install), I've verified that there is indeed a zero-byte file that seems to have a space character as its name. This is fine/needed when the directory is empty but once the directory has been populated then this "empty" file should be removed automatically. An alternative is to allow the user to see/delete this file since the user can do neither with Cyberduck at the moment.

Empty file that Cyberduck creates when creating new folders:

~ ❯❯❯ aws s3 ls s3://foo/bar
2015-03-05 17:02:01          0
2015-03-05 17:05:11          0 hello.world

Should be easily reproduced by the following steps:

  1. Create an new folder in S3
  2. Place a file in that folder that you just created
  3. Use some other means of displaying that directory (Cyberduck won't show it as far as I can tell)
  4. Note the empty placeholder file that was created along with the file you place in that new directory
@cyberduck
Copy link
Collaborator Author

@dkocher commented

The placeholder is a key with the name of the directory and a application/x-directory content type set.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

The placeholder is deleted when removing the directory. If the placeholder would be automatically removed when uploading a file into it it would lead to unexpected results when removing all files from the path with the directory disappearing as well.

@iterate-ch iterate-ch locked as resolved and limited conversation to collaborators Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement low priority s3 AWS S3 Protocol Implementation wontfix
Projects
None yet
Development

No branches or pull requests

2 participants