]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/tools/build/src/engine/filesys.h
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / tools / build / src / engine / filesys.h
index 48ea6d1714334be1d7e00df1fa3211c6c752b69e..61c0e6a7bfffac699119bdbb7de8c19a02867d70 100644 (file)
@@ -24,6 +24,8 @@
 #include "pathsys.h"
 #include "timestamp.h"
 
+#include <string>
+
 
 typedef struct file_info_t
 {
@@ -78,6 +80,18 @@ void file_remove_atexit( OBJECT * const path );
 void file_supported_fmt_resolution( timestamp * const );
 int file_time( OBJECT * const path, timestamp * const );
 
+namespace b2 { namespace filesys {
+
+    inline bool is_file(const std::string &path)
+    {
+        OBJECT * path_o = object_new(path.c_str());
+        bool result = file_is_file(path_o) == 1;
+        object_free(path_o);
+        return result;
+    }
+
+}}
+
 
 /*  Archive/library file support */
 file_archive_info_t * file_archive_info( OBJECT * const path, int * found );