LibreCat / Catmandu-BagIt

Catmandu module for working with BagIt packages
Other
1 stars 1 forks source link

self-cleanup #3

Closed vpeil closed 8 years ago

vpeil commented 8 years ago

By running the nice example script https://github.com/LibreCat/Catmandu-BagIt/blob/master/examples/oai2bagit.sh one issue occurs to me: Files are fetched into /tmp, after the bag is created the files remain in the /tmp-directory and one runs out of disk space..

can we delete the tempfile after the bag has been created?

phochste commented 8 years ago

Can you provide some details on the OS? The code is self cleaning tempfile() is used that should automatically delete the fetched files after each record.

vpeil commented 8 years ago

I'm on debian, but had the same issue on openSuse server...

on debian:

$ uname -a
Linux ubi 4.2.0-1-amd64 #1 SMP Debian 4.2.6-3 (2015-12-06) x86_64 GNU/Linux

On 14/01/16 15:28, Patrick Hochstenbach wrote:

Can you provide some details on the OS? The code is self cleaning tempfile() is used that should automatically delete the fetched files after each record.

— Reply to this email directly or view it on GitHub https://github.com/LibreCat/Catmandu-BagIt/issues/3#issuecomment-171657330.