1 /* 2 * Copyright 2017, Andrew Lindesay <apl@lindesay.co.nz>. 3 * All rights reserved. Distributed under the terms of the MIT License. 4 */ 5 6 #ifndef PATH_UTILS_H 7 #define PATH_UTILS_H 8 9 #include <Path.h> 10 11 class StorageUtils { 12 13 public: 14 static status_t RemoveDirectoryContents(BPath& path); 15 static status_t AppendToString(BPath& path, BString& result); 16 static status_t ExistsDirectory(BPath& directory, 17 bool* exists, 18 bool* isDirectory); 19 }; 20 21 #endif // PATH_UTILS_H 22