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

Cannot run Purge() on keys returned by Unseen() #1

Closed
crooks opened this issue Oct 10, 2014 · 1 comment
Closed

Cannot run Purge() on keys returned by Unseen() #1

crooks opened this issue Oct 10, 2014 · 1 comment

Comments

@crooks
Copy link

crooks commented Oct 10, 2014

Hi,

I've noticed that keys returned by Unseen() can only be purged if a suffix is applied. E.g:
dir.Purge(key + ":2,")
This might be by design because the key relates to the /new/ format rather than /cur/ but it would still be useful to purge against keys returned by Unseen.

Thanks very much for the library!

Best wishes,
Steve

@luksen
Copy link
Owner

luksen commented Oct 10, 2014

Thanks! Purge and Move both erroneously calculated the file names instead of using Filename.

@luksen luksen closed this as completed Oct 10, 2014
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

2 participants