Ask HN: File-import routine best practices?

1 points by lordkrandel ↗ HN
I'm looking for best practices for file-import routines.

Are there any articles or books on the subject?

I currently use the following routine.

Folders:

.\in\

.\busy\

.\old\good\

.\old\bad\

Routine:

1. (eventually) move .\busy\<filename> -> .\old\bad\ (crash recovery)

2. move .\in\<filename> -> .\busy\<datetime>_<filename>

two files with the same name are put in the .\in\ folder have to be considered differently

3. try to import .\busy\<filename>

4. a. if the file is OK, then -> .\old\good\

4. b. else -> .\old\bad\",

0 comments

[ 2.2 ms ] story [ 15.6 ms ] thread

No comments yet.