5 // Created by James McIlree on 4/8/13.
6 // Copyright (c) 2013 Apple. All rights reserved.
9 #ifndef CPPUtil_UtilPath_hpp
10 #define CPPUtil_UtilPath_hpp
17 * /tmp/scratch.tiff scratch.tiff
18 * /tmp/scratch scratch
21 * /mach_kernel mach_kernel
24 static std::string basename(const char* path);
25 static std::string basename(std::string& path);
27 static bool exists(const char* path);
28 static bool exists(std::string& path);
30 static bool is_file(const char* path, bool should_resolve_symlinks);
31 static bool is_file(std::string& path, bool should_resolve_symlinks);