xref: /haiku/src/apps/haikudepot/util/StorageUtils.h (revision 6889394848e2dc9f41ff53b12141d572822ca0c6)
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