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