Changes between Version 2 and Version 3 of DirHierarchy
- Timestamp:
- Jul 30, 2007, 5:38:09 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DirHierarchy
v2 v3 18 18 }}} 19 19 20 This takes a name of the input file and the absolute path of the root of the download hierarchy (typically the download_dir element from [ProjectOptions config.xml]) and returns the absolute path of the file in the hierarchy. Generally make_directory_if_neededshould be set to true: this creates a fanout directory if needed to accommodate a particular file. Secondly, your validator and assimilator should call20 This takes a name of the input file and the absolute path of the root of the download hierarchy (typically the `download_dir` element from [ProjectOptions config.xml]) and returns the absolute path of the file in the hierarchy. Generally `make_directory_if_needed` should be set to true: this creates a fanout directory if needed to accommodate a particular file. Secondly, your validator and assimilator should call 21 21 22 22 {{{ … … 33 33 }}} 34 34 35 dir_hier_move moves all files from src_dir (flat) into dst_dir (hierarchical with the given fanout). dir_hier_path, given a filename, prints the full pathname of that file in the hierarchy.35 `dir_hier_move` moves all files from `src_dir` (flat) into `dst_dir` (hierarchical with the given fanout). `dir_hier_path`, given a filename, prints the full pathname of that file in the hierarchy. 36 36 37 37 == Transitioning from flat to hierarchical directories == … … 45 45 46 46 This causes the file deleter to check both old and new locations. 47 * Use dir_hier_moveto move existing upload files to a hierarchy.47 * Use `dir_hier_move` to move existing upload files to a hierarchy. 48 48 * Start the project, and monitor everything closely for a while. 49 49