| 114 | } |
| 115 | |
| 116 | FlaxStorageReference ContentStorageManager::EnsureAccess(const StringView& path) |
| 117 | { |
| 118 | // Note: because we want to create new storage package it may exists. |
| 119 | // So let's check if any storage container is referencing that location and try to close it. |
| 120 | auto storage = TryGetStorage(path); |
| 121 | if (storage && storage->IsLoaded()) |
| 122 | { |
| 123 | LOG(Info, "File \'{0}\' is in use. Trying to release handle to it.", path); |
| 124 | storage->CloseFileHandles(); |
| 125 | } |
| 126 | return storage; |
| 127 | } |
| 128 | |
| 129 | uint32 ContentStorageManager::GetMemoryUsage() |
| 130 | { |
nothing calls this directly
no test coverage detected