Reorganization of file/directory/archive management code.