Description
The deleteFolder function in editor/src/DocumentWindows/AssetManager/FolderManager.cpp currently lacks a check for assets within the folder before deletion. This could lead to accidental data loss when folders containing assets are deleted.
Location
- File:
editor/src/DocumentWindows/AssetManager/FolderManager.cpp
- Method:
FolderManager::deleteFolder
- Lines: Around 97-123
Current Behavior
The function deletes folders without checking if they contain assets, as indicated by the TODO comment.
Expected Behavior
The function should check if the folder contains any assets before deletion and prevent deletion if assets are found.
References
Description
The
deleteFolderfunction ineditor/src/DocumentWindows/AssetManager/FolderManager.cppcurrently lacks a check for assets within the folder before deletion. This could lead to accidental data loss when folders containing assets are deleted.Location
editor/src/DocumentWindows/AssetManager/FolderManager.cppFolderManager::deleteFolderCurrent Behavior
The function deletes folders without checking if they contain assets, as indicated by the TODO comment.
Expected Behavior
The function should check if the folder contains any assets before deletion and prevent deletion if assets are found.
References