| 291 | } |
| 292 | |
| 293 | bool Win32FileSystem::remove(const Path& path) |
| 294 | { |
| 295 | // Should probably check for outstanding files or directory objects. |
| 296 | String file = PathToOS(_BuildFileName(mVolume,path)); |
| 297 | |
| 298 | WIN32_FIND_DATAW info; |
| 299 | HANDLE handle = ::FindFirstFileW(file.utf16(), &info); |
| 300 | ::FindClose(handle); |
| 301 | if (handle == INVALID_HANDLE_VALUE) |
| 302 | return false; |
| 303 | |
| 304 | if (S_ISDIR(info.dwFileAttributes)) |
| 305 | return ::RemoveDirectoryW(file.utf16()); |
| 306 | |
| 307 | return ::DeleteFileW(file.utf16()); |
| 308 | } |
| 309 | |
| 310 | bool Win32FileSystem::rename(const Path& from,const Path& to) |
| 311 | { |
nothing calls this directly
no test coverage detected