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

No payload file "data" allowed in BagIt bag creation folder? #108

Closed
fungunga opened this issue Jan 26, 2018 · 2 comments
Closed

No payload file "data" allowed in BagIt bag creation folder? #108

fungunga opened this issue Jan 26, 2018 · 2 comments
Labels

Comments

@fungunga
Copy link

When submitting an issue please include:

  • Which version you are running of the software you are running
    5.0.6
  • Which operating system you are running on
    Mac OS X High Sierra
  • If available Attach all logs, and or output, and or screenshots

Please format it in the given when then style

For example (from link above):

Given

  • With (folder) a folder with files to start the BagIt creation process using:

Path folder = Paths.get(bagFolder.toURI());

Collection algorithm = new ArrayList();
algorithm.add(StandardSupportedAlgorithms.MD5);
bvoolean includeHiddenFiles = false;
Bag bag = BagCreator.bagInPlace(folder, algorithm, includeHiddenFiles);

When

  • I name one of the payload files "data" in /folder/

Then

  • Shouldn't I get a bag with a file named "data" in the "data/" payload folder?
  • I do instead get an FileAlreadyExistsException, that the file "data" already is existing.

If

  • there is a spec that no files called "data" must be added to the payload, everythin is OK but the error message :-)
@johnscancella
Copy link
Contributor

Thanks for submitting this. The problem stems from us creating a data directory to move all the data files into. Since you already have a file named data, it fails to create a directory named data. This will be fixed in release 5.0.7

@fungunga
Copy link
Author

Thanks a lot!

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

No branches or pull requests

2 participants