Index: src/ch/TLocalFilesystem.cpp =================================================================== diff -u -N -r1456ff2ae4a98c83f18d20dc253a24f26ddf521d -r28b540c17739ad8b63f3b199e0e2151ec048bd05 --- src/ch/TLocalFilesystem.cpp (.../TLocalFilesystem.cpp) (revision 1456ff2ae4a98c83f18d20dc253a24f26ddf521d) +++ src/ch/TLocalFilesystem.cpp (.../TLocalFilesystem.cpp) (revision 28b540c17739ad8b63f3b199e0e2151ec048bd05) @@ -105,11 +105,21 @@ return bResult != FALSE; } +bool TLocalFilesystem::SetAttributes(const chcore::TSmartPath& pathFileDir, DWORD dwAttributes) +{ + return ::SetFileAttributes(PrependPathExtensionIfNeeded(pathFileDir).ToString(), dwAttributes) != FALSE; +} + bool TLocalFilesystem::CreateDirectory(const chcore::TSmartPath& pathDirectory) { return ::CreateDirectory(PrependPathExtensionIfNeeded(pathDirectory).ToString(), NULL) != FALSE; } +bool TLocalFilesystem::DeleteFile(const chcore::TSmartPath& pathFile) +{ + return ::DeleteFile(PrependPathExtensionIfNeeded(pathFile).ToString()) != FALSE; +} + bool TLocalFilesystem::GetFileInfo(const chcore::TSmartPath& pathFile, CFileInfoPtr& rFileInfo, size_t stSrcIndex, const chcore::TPathContainer* pBasePaths) { if(!rFileInfo)