Added ingest file cleanup
This commit is contained in:
@ -76,6 +76,14 @@ func (r *Repository) ArchiveFile(inFile string) {
|
||||
}
|
||||
}
|
||||
|
||||
func (r *Repository) CleanupFile(inFile string) {
|
||||
// create ingest path
|
||||
ingestPath := filepath.Join(r.basePath, "ingest", inFile)
|
||||
|
||||
// remove the file
|
||||
os.Remove(ingestPath)
|
||||
}
|
||||
|
||||
func create_repo_dir(path string) {
|
||||
_, err := os.Stat(path)
|
||||
if os.IsNotExist(err) {
|
||||
|
Reference in New Issue
Block a user