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

Allow 'ls' and 'rm' for file, even if it doesn't exist in file system #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tdilauro
Copy link

Fixes issue #3.

It is sometimes necessary to list or remove files that have an entry in
the index (fixity database), but which do not exist (any longer) in the
file system. Prior to this commit, a dummy file must be created at the
desired path to enable these operations. This is not even possible when
that part of the file system is not writable. And when it is, this
creates a risk of leaving the dummy file behind or clobbering another file.

It is sometimes necessary to list or remove files that have an entry in
the index (fixity database), but which do not exist (any longer) in the
file system. Prior to this commit, a dummy file must be created at the
desired path to enable these operations. This is not even possible when
that part of the file system is not writeable. And when it is, this
creates a risk of leaving the dummy file behind or clobbering another file.
@tdilauro
Copy link
Author

Ran rake spec under Ruby 1.9.3p551. All tests pass. One deprecation warning for :should v. :expect syntax in tests.

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

Successfully merging this pull request may close these issues.

1 participant