Bulk export files to local directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KARL4 |
Fix Released
|
High
|
Carlos de la Guardia |
Bug Description
OSF has a need to download a LOT of files (2,800) to investigate them. They'd like to give us a text file with filenames, one per line, and we then give them a ZIP file (or manually upload to Box). They can't give us the community and sub-folder...they only know the "filename".
- We can do this as a one-off console script
- Read the lines in the text file
- Iterate through each File in the catalog, making a mapping of filename -> docid
- Iterate through each line in the text file
- If the entry matches a File filename, "dump it" (see below)
- If not, write to a log file about entries that weren't found
Dumping
===========
- Write the file contents to the current working directory
- Use a filename such as communityname-
- Also in the directory, keep an errors.log file with entries for missing filenames
Changed in karl4: | |
milestone: | 023 → 024 |
Changed in karl4: | |
milestone: | 024 → 025 |
Changed in karl4: | |
milestone: | 025 → 026 |
Changed in karl4: | |
milestone: | 026 → 028 |
Changed in karl4: | |
status: | New → Won't Fix |
Changed in karl4: | |
status: | In Progress → Fix Released |
I believe this is going to come back, Oleg asked about it.