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

Delete directory markers with rm -r #36

Open
jtratner opened this issue Jul 7, 2017 · 0 comments
Open

Delete directory markers with rm -r #36

jtratner opened this issue Jul 7, 2017 · 0 comments

Comments

@jtratner
Copy link
Contributor

jtratner commented Jul 7, 2017

Right now if you have an application/directory marker like this one:

›› swift stat --os-tenant-name=AUTH_acct Cont ObjDirectory
               Account: AUTH_acct
             Container: Cont
                Object: ObjDirectory
          Content Type: application/directory
        Content Length: 0

issuing

stor rm -r swift://AUTH_acct/Cont/ObjDirectory

will not cause that marker to be deleted, because we don't check for it.

Thus we need to essentially say that:

stor rm -r swift://AUTH_acct/Cont/ObjDirectory

also implies that we delete the object (i.e.):

stor rm swift://AUTH_acct/Cont/ObjDirectory

credit to Sanjay for noticing the bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant