| 839 | } |
| 840 | |
| 841 | FileInfo * FileAccess::setFileInfo ( const string & fileName, FileInfoPtr && info ) { |
| 842 | // TODO: test. for now we need to allow replace |
| 843 | // if ( files.find(fileName)!=files.end() ) return nullptr; |
| 844 | files[fileName] = das::move(info); |
| 845 | auto ins = files.find(fileName); |
| 846 | ins->second->name = (char *) ins->first.c_str(); |
| 847 | return ins->second.get(); |
| 848 | } |
| 849 | |
| 850 | bool FileAccess::invalidateFileInfo ( const string & fileName ) { |
| 851 | auto it = files.find(fileName); |