This seems like something that's tenable?  It would be useful for merging ram indexes to disk where if a directory is passed, the directory may be changed.