aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorColm Donelan <colm.donelan@arm.com>2023-02-10 15:19:46 +0000
committerColm Donelan <colm.donelan@arm.com>2023-02-10 15:19:46 +0000
commitb5ea589e568d3f56bd868d57c850680f999f83fc (patch)
tree0e9eac9867fc3804c08d5f1b3afacee86e22af3d /include
parentaa4f5833bea14bd92b4429c4659d205a81167486 (diff)
downloadarmnn-b5ea589e568d3f56bd868d57c850680f999f83fc.tar.gz
IVGCVSW-7510 Delete temporary files created by DebugTestImpl.
* The test cases that use DebugTestImpl were creating temporary files but not cleaning them up after running. * Refactored FileSystem to extract a common RemoveDirectoryAndContents function. Signed-off-by: Colm Donelan <colm.donelan@arm.com> Change-Id: I35b8d2eeed286742358a9abccbc078493d033902
Diffstat (limited to 'include')
-rw-r--r--include/armnnUtils/Filesystem.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/armnnUtils/Filesystem.hpp b/include/armnnUtils/Filesystem.hpp
index 0b97af4323..5d547016be 100644
--- a/include/armnnUtils/Filesystem.hpp
+++ b/include/armnnUtils/Filesystem.hpp
@@ -29,7 +29,9 @@ fs::path NamedTempFile(const char* fileName);
/// Returns full path to temporary folder
std::string CreateDirectory(std::string sPath);
-FileContents ReadFileContentsIntoString(const std::string path);
+FileContents ReadFileContentsIntoString(const std::string& path);
+
+void RemoveDirectoryAndContents(const std::string& path);
} // namespace armnnUtils
} // namespace Filesystem