summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXusheng <xusheng@vector35.com>2023-11-24 17:06:08 +0800
committerXusheng <xusheng@vector35.com>2023-11-30 17:14:14 +0800
commit6d78cac6559134b8013cd83eca3866ab22ae05dd (patch)
tree1575fe2e04186af7ee91daeb8a7afa9d4e748fa4
parentbf358baafdee8b4a2b689bd8be65fd5a7280c0d9 (diff)
Implement BN<FileSystem> family of APIs based on std::filesystem
-rw-r--r--binaryninjacore.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/binaryninjacore.h b/binaryninjacore.h
index 229f708c..2bad8b38 100644
--- a/binaryninjacore.h
+++ b/binaryninjacore.h
@@ -6307,8 +6307,8 @@ extern "C"
BINARYNINJACOREAPI void BNLlvmServicesAssembleFree(char* outBytes, char* err);
// Filesystem functionality
- BINARYNINJACOREAPI int BNDeleteFile(const char* path);
- BINARYNINJACOREAPI int BNDeleteDirectory(const char* path, int contentsOnly);
+ BINARYNINJACOREAPI bool BNDeleteFile(const char* path);
+ BINARYNINJACOREAPI bool BNDeleteDirectory(const char* path);
BINARYNINJACOREAPI bool BNCreateDirectory(const char* path, bool createSubdirectories);
BINARYNINJACOREAPI bool BNPathExists(const char* path);
BINARYNINJACOREAPI char* BNGetParentPath(const char* path);
@@ -6317,8 +6317,8 @@ extern "C"
BINARYNINJACOREAPI bool BNFileSize(const char* path, uint64_t* size);
BINARYNINJACOREAPI bool BNRenameFile(const char* source, const char* dest);
BINARYNINJACOREAPI bool BNCopyFile(const char* source, const char* dest);
- BINARYNINJACOREAPI const char* BNGetFileName(const char* path);
- BINARYNINJACOREAPI const char* BNGetFileExtension(const char* path);
+ BINARYNINJACOREAPI char* BNGetFileName(const char* path);
+ BINARYNINJACOREAPI char* BNGetFileExtension(const char* path);
BINARYNINJACOREAPI char** BNGetFilePathsInDirectory(const char* path, size_t* count);
BINARYNINJACOREAPI char* BNAppendPath(const char* path, const char* part);
BINARYNINJACOREAPI void BNFreePath(char* path);