operations.hpp 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551
  1. // boost/filesystem/operations.hpp ---------------------------------------------------//
  2. // Copyright Beman Dawes 2002-2009
  3. // Copyright Jan Langer 2002
  4. // Copyright Dietmar Kuehl 2001
  5. // Copyright Vladimir Prus 2002
  6. // Copyright Andrey Semashev 2020
  7. // Distributed under the Boost Software License, Version 1.0.
  8. // See http://www.boost.org/LICENSE_1_0.txt
  9. // Library home page: http://www.boost.org/libs/filesystem
  10. //--------------------------------------------------------------------------------------//
  11. #ifndef BOOST_FILESYSTEM3_OPERATIONS_HPP
  12. #define BOOST_FILESYSTEM3_OPERATIONS_HPP
  13. #include <boost/config.hpp>
  14. # if defined( BOOST_NO_STD_WSTRING )
  15. # error Configuration not supported: Boost.Filesystem V3 and later requires std::wstring support
  16. # endif
  17. #include <boost/filesystem/config.hpp>
  18. #include <boost/filesystem/path.hpp>
  19. #include <boost/filesystem/file_status.hpp>
  20. #ifndef BOOST_FILESYSTEM_NO_DEPRECATED
  21. // These includes are left for backward compatibility and should be included directly by users, as needed
  22. #include <boost/filesystem/exception.hpp>
  23. #include <boost/filesystem/directory.hpp>
  24. #endif
  25. #include <boost/detail/bitmask.hpp>
  26. #include <boost/core/scoped_enum.hpp>
  27. #include <boost/system/error_code.hpp>
  28. #include <boost/cstdint.hpp>
  29. #include <string>
  30. #include <ctime>
  31. #include <boost/config/abi_prefix.hpp> // must be the last #include
  32. //--------------------------------------------------------------------------------------//
  33. namespace boost {
  34. namespace filesystem {
  35. struct space_info
  36. {
  37. // all values are byte counts
  38. boost::uintmax_t capacity;
  39. boost::uintmax_t free; // <= capacity
  40. boost::uintmax_t available; // <= free
  41. };
  42. BOOST_SCOPED_ENUM_UT_DECLARE_BEGIN(copy_options, unsigned int)
  43. {
  44. none = 0u, // Default. For copy_file: error if the target file exists. For copy: do not recurse, follow symlinks, copy file contents.
  45. // copy_file options:
  46. skip_existing = 1u, // Don't overwrite the existing target file, don't report an error
  47. overwrite_existing = 1u << 1, // Overwrite existing file
  48. update_existing = 1u << 2, // Overwrite existing file if its last write time is older than the replacement file
  49. // copy options:
  50. recursive = 1u << 8, // Recurse into sub-directories
  51. copy_symlinks = 1u << 9, // Copy symlinks as symlinks instead of copying the referenced file
  52. skip_symlinks = 1u << 10, // Don't copy symlinks
  53. directories_only = 1u << 11, // Only copy directory structure, do not copy non-directory files
  54. create_symlinks = 1u << 12, // Create symlinks instead of copying files
  55. create_hard_links = 1u << 13, // Create hard links instead of copying files
  56. _detail_recursing = 1u << 14 // Internal use only, do not use
  57. }
  58. BOOST_SCOPED_ENUM_DECLARE_END(copy_options)
  59. BOOST_BITMASK(BOOST_SCOPED_ENUM_NATIVE(copy_options))
  60. #if !defined(BOOST_FILESYSTEM_NO_DEPRECATED)
  61. BOOST_SCOPED_ENUM_DECLARE_BEGIN(copy_option)
  62. {
  63. none = static_cast< unsigned int >(copy_options::none),
  64. fail_if_exists = none,
  65. overwrite_if_exists = static_cast< unsigned int >(copy_options::overwrite_existing)
  66. }
  67. BOOST_SCOPED_ENUM_DECLARE_END(copy_option)
  68. #endif
  69. //--------------------------------------------------------------------------------------//
  70. // implementation details //
  71. //--------------------------------------------------------------------------------------//
  72. namespace detail {
  73. BOOST_FILESYSTEM_DECL
  74. path absolute(const path& p, const path& base, system::error_code* ec=0);
  75. BOOST_FILESYSTEM_DECL
  76. file_status status(const path&p, system::error_code* ec=0);
  77. BOOST_FILESYSTEM_DECL
  78. file_status symlink_status(const path& p, system::error_code* ec=0);
  79. BOOST_FILESYSTEM_DECL
  80. bool is_empty(const path& p, system::error_code* ec=0);
  81. BOOST_FILESYSTEM_DECL
  82. path initial_path(system::error_code* ec=0);
  83. BOOST_FILESYSTEM_DECL
  84. path canonical(const path& p, const path& base, system::error_code* ec=0);
  85. BOOST_FILESYSTEM_DECL
  86. void copy(const path& from, const path& to, unsigned int options, system::error_code* ec=0);
  87. #if !defined(BOOST_FILESYSTEM_NO_DEPRECATED)
  88. BOOST_FILESYSTEM_DECL
  89. void copy_directory(const path& from, const path& to, system::error_code* ec=0);
  90. #endif
  91. BOOST_FILESYSTEM_DECL
  92. bool copy_file(const path& from, const path& to, // See ticket #2925
  93. unsigned int options, system::error_code* ec=0); // see copy_options for options
  94. BOOST_FILESYSTEM_DECL
  95. void copy_symlink(const path& existing_symlink, const path& new_symlink, system::error_code* ec=0);
  96. BOOST_FILESYSTEM_DECL
  97. bool create_directories(const path& p, system::error_code* ec=0);
  98. BOOST_FILESYSTEM_DECL
  99. bool create_directory(const path& p, const path* existing, system::error_code* ec=0);
  100. BOOST_FILESYSTEM_DECL
  101. void create_directory_symlink(const path& to, const path& from,
  102. system::error_code* ec=0);
  103. BOOST_FILESYSTEM_DECL
  104. void create_hard_link(const path& to, const path& from, system::error_code* ec=0);
  105. BOOST_FILESYSTEM_DECL
  106. void create_symlink(const path& to, const path& from, system::error_code* ec=0);
  107. BOOST_FILESYSTEM_DECL
  108. path current_path(system::error_code* ec=0);
  109. BOOST_FILESYSTEM_DECL
  110. void current_path(const path& p, system::error_code* ec=0);
  111. BOOST_FILESYSTEM_DECL
  112. bool equivalent(const path& p1, const path& p2, system::error_code* ec=0);
  113. BOOST_FILESYSTEM_DECL
  114. boost::uintmax_t file_size(const path& p, system::error_code* ec=0);
  115. BOOST_FILESYSTEM_DECL
  116. boost::uintmax_t hard_link_count(const path& p, system::error_code* ec=0);
  117. BOOST_FILESYSTEM_DECL
  118. std::time_t creation_time(const path& p, system::error_code* ec=0);
  119. BOOST_FILESYSTEM_DECL
  120. std::time_t last_write_time(const path& p, system::error_code* ec=0);
  121. BOOST_FILESYSTEM_DECL
  122. void last_write_time(const path& p, const std::time_t new_time,
  123. system::error_code* ec=0);
  124. BOOST_FILESYSTEM_DECL
  125. void permissions(const path& p, perms prms, system::error_code* ec=0);
  126. BOOST_FILESYSTEM_DECL
  127. path read_symlink(const path& p, system::error_code* ec=0);
  128. BOOST_FILESYSTEM_DECL
  129. path relative(const path& p, const path& base, system::error_code* ec = 0);
  130. BOOST_FILESYSTEM_DECL
  131. bool remove(const path& p, system::error_code* ec=0);
  132. BOOST_FILESYSTEM_DECL
  133. boost::uintmax_t remove_all(const path& p, system::error_code* ec=0);
  134. BOOST_FILESYSTEM_DECL
  135. void rename(const path& old_p, const path& new_p, system::error_code* ec=0);
  136. BOOST_FILESYSTEM_DECL
  137. void resize_file(const path& p, uintmax_t size, system::error_code* ec=0);
  138. BOOST_FILESYSTEM_DECL
  139. space_info space(const path& p, system::error_code* ec=0);
  140. BOOST_FILESYSTEM_DECL
  141. path system_complete(const path& p, system::error_code* ec=0);
  142. BOOST_FILESYSTEM_DECL
  143. path temp_directory_path(system::error_code* ec=0);
  144. BOOST_FILESYSTEM_DECL
  145. path unique_path(const path& p, system::error_code* ec=0);
  146. BOOST_FILESYSTEM_DECL
  147. path weakly_canonical(const path& p, system::error_code* ec = 0);
  148. } // namespace detail
  149. //--------------------------------------------------------------------------------------//
  150. // //
  151. // status query functions //
  152. // //
  153. //--------------------------------------------------------------------------------------//
  154. inline
  155. file_status status(const path& p) {return detail::status(p);}
  156. inline
  157. file_status status(const path& p, system::error_code& ec)
  158. {return detail::status(p, &ec);}
  159. inline
  160. file_status symlink_status(const path& p) {return detail::symlink_status(p);}
  161. inline
  162. file_status symlink_status(const path& p, system::error_code& ec)
  163. {return detail::symlink_status(p, &ec);}
  164. inline
  165. bool exists(const path& p) {return exists(detail::status(p));}
  166. inline
  167. bool exists(const path& p, system::error_code& ec)
  168. {return exists(detail::status(p, &ec));}
  169. inline
  170. bool is_directory(const path& p) {return is_directory(detail::status(p));}
  171. inline
  172. bool is_directory(const path& p, system::error_code& ec)
  173. {return is_directory(detail::status(p, &ec));}
  174. inline
  175. bool is_regular_file(const path& p) {return is_regular_file(detail::status(p));}
  176. inline
  177. bool is_regular_file(const path& p, system::error_code& ec)
  178. {return is_regular_file(detail::status(p, &ec));}
  179. inline
  180. bool is_other(const path& p) {return is_other(detail::status(p));}
  181. inline
  182. bool is_other(const path& p, system::error_code& ec)
  183. {return is_other(detail::status(p, &ec));}
  184. inline
  185. bool is_symlink(const path& p) {return is_symlink(detail::symlink_status(p));}
  186. inline
  187. bool is_symlink(const path& p, system::error_code& ec)
  188. {return is_symlink(detail::symlink_status(p, &ec));}
  189. #ifndef BOOST_FILESYSTEM_NO_DEPRECATED
  190. inline
  191. bool is_regular(const path& p) {return is_regular(detail::status(p));}
  192. inline
  193. bool is_regular(const path& p, system::error_code& ec)
  194. {return is_regular(detail::status(p, &ec));}
  195. #endif
  196. inline
  197. bool is_empty(const path& p) {return detail::is_empty(p);}
  198. inline
  199. bool is_empty(const path& p, system::error_code& ec)
  200. {return detail::is_empty(p, &ec);}
  201. //--------------------------------------------------------------------------------------//
  202. // //
  203. // operational functions //
  204. // //
  205. //--------------------------------------------------------------------------------------//
  206. inline
  207. path initial_path() {return detail::initial_path();}
  208. inline
  209. path initial_path(system::error_code& ec) {return detail::initial_path(&ec);}
  210. template <class Path>
  211. path initial_path() {return initial_path();}
  212. template <class Path>
  213. path initial_path(system::error_code& ec) {return detail::initial_path(&ec);}
  214. inline
  215. path current_path() {return detail::current_path();}
  216. inline
  217. path current_path(system::error_code& ec) {return detail::current_path(&ec);}
  218. inline
  219. void current_path(const path& p) {detail::current_path(p);}
  220. inline
  221. void current_path(const path& p, system::error_code& ec) BOOST_NOEXCEPT {detail::current_path(p, &ec);}
  222. inline
  223. path absolute(const path& p, const path& base=current_path()) {return detail::absolute(p, base);}
  224. inline
  225. path absolute(const path& p, system::error_code& ec)
  226. {
  227. path base = current_path(ec);
  228. if (ec)
  229. return path();
  230. return detail::absolute(p, base, &ec);
  231. }
  232. inline
  233. path absolute(const path& p, const path& base, system::error_code& ec) {return detail::absolute(p, base, &ec);}
  234. inline
  235. path canonical(const path& p, const path& base=current_path())
  236. {return detail::canonical(p, base);}
  237. inline
  238. path canonical(const path& p, system::error_code& ec)
  239. {
  240. path base = current_path(ec);
  241. if (ec)
  242. return path();
  243. return detail::canonical(p, base, &ec);
  244. }
  245. inline
  246. path canonical(const path& p, const path& base, system::error_code& ec)
  247. {return detail::canonical(p, base, &ec);}
  248. #ifndef BOOST_FILESYSTEM_NO_DEPRECATED
  249. inline
  250. path complete(const path& p)
  251. {
  252. return absolute(p, initial_path());
  253. }
  254. inline
  255. path complete(const path& p, const path& base)
  256. {
  257. return absolute(p, base);
  258. }
  259. #endif
  260. inline
  261. void copy(const path& from, const path& to)
  262. {
  263. detail::copy(from, to, static_cast< unsigned int >(copy_options::none));
  264. }
  265. inline
  266. void copy(const path& from, const path& to, system::error_code& ec) BOOST_NOEXCEPT
  267. {
  268. detail::copy(from, to, static_cast< unsigned int >(copy_options::none), &ec);
  269. }
  270. inline
  271. void copy(const path& from, const path& to, BOOST_SCOPED_ENUM_NATIVE(copy_options) options)
  272. {
  273. detail::copy(from, to, static_cast< unsigned int >(options));
  274. }
  275. inline
  276. void copy(const path& from, const path& to, BOOST_SCOPED_ENUM_NATIVE(copy_options) options, system::error_code& ec) BOOST_NOEXCEPT
  277. {
  278. detail::copy(from, to, static_cast< unsigned int >(options), &ec);
  279. }
  280. #if !defined(BOOST_FILESYSTEM_NO_DEPRECATED)
  281. inline
  282. void copy_directory(const path& from, const path& to)
  283. {detail::copy_directory(from, to);}
  284. inline
  285. void copy_directory(const path& from, const path& to, system::error_code& ec) BOOST_NOEXCEPT
  286. {detail::copy_directory(from, to, &ec);}
  287. #endif
  288. inline
  289. bool copy_file(const path& from, const path& to)
  290. {
  291. return detail::copy_file(from, to, static_cast< unsigned int >(copy_options::none));
  292. }
  293. inline
  294. bool copy_file(const path& from, const path& to, system::error_code& ec) BOOST_NOEXCEPT
  295. {
  296. return detail::copy_file(from, to, static_cast< unsigned int >(copy_options::none), &ec);
  297. }
  298. inline
  299. bool copy_file(const path& from, const path& to, // See ticket #2925
  300. BOOST_SCOPED_ENUM_NATIVE(copy_options) options)
  301. {
  302. return detail::copy_file(from, to, static_cast< unsigned int >(options));
  303. }
  304. inline
  305. bool copy_file(const path& from, const path& to, // See ticket #2925
  306. BOOST_SCOPED_ENUM_NATIVE(copy_options) options, system::error_code& ec) BOOST_NOEXCEPT
  307. {
  308. return detail::copy_file(from, to, static_cast< unsigned int >(options), &ec);
  309. }
  310. #if !defined(BOOST_FILESYSTEM_NO_DEPRECATED)
  311. inline
  312. bool copy_file(const path& from, const path& to, // See ticket #2925
  313. BOOST_SCOPED_ENUM_NATIVE(copy_option) options)
  314. {
  315. return detail::copy_file(from, to, static_cast< unsigned int >(options));
  316. }
  317. inline
  318. bool copy_file(const path& from, const path& to, // See ticket #2925
  319. BOOST_SCOPED_ENUM_NATIVE(copy_option) options, system::error_code& ec) BOOST_NOEXCEPT
  320. {
  321. return detail::copy_file(from, to, static_cast< unsigned int >(options), &ec);
  322. }
  323. #endif // !defined(BOOST_FILESYSTEM_NO_DEPRECATED)
  324. inline
  325. void copy_symlink(const path& existing_symlink,
  326. const path& new_symlink) {detail::copy_symlink(existing_symlink, new_symlink);}
  327. inline
  328. void copy_symlink(const path& existing_symlink, const path& new_symlink,
  329. system::error_code& ec) BOOST_NOEXCEPT
  330. {detail::copy_symlink(existing_symlink, new_symlink, &ec);}
  331. inline
  332. bool create_directories(const path& p) {return detail::create_directories(p);}
  333. inline
  334. bool create_directories(const path& p, system::error_code& ec) BOOST_NOEXCEPT
  335. {return detail::create_directories(p, &ec);}
  336. inline
  337. bool create_directory(const path& p) {return detail::create_directory(p, 0);}
  338. inline
  339. bool create_directory(const path& p, system::error_code& ec) BOOST_NOEXCEPT
  340. {return detail::create_directory(p, 0, &ec);}
  341. inline
  342. bool create_directory(const path& p, const path& existing)
  343. {return detail::create_directory(p, &existing);}
  344. inline
  345. bool create_directory(const path& p, const path& existing, system::error_code& ec) BOOST_NOEXCEPT
  346. {return detail::create_directory(p, &existing, &ec);}
  347. inline
  348. void create_directory_symlink(const path& to, const path& from)
  349. {detail::create_directory_symlink(to, from);}
  350. inline
  351. void create_directory_symlink(const path& to, const path& from, system::error_code& ec) BOOST_NOEXCEPT
  352. {detail::create_directory_symlink(to, from, &ec);}
  353. inline
  354. void create_hard_link(const path& to, const path& new_hard_link) {detail::create_hard_link(to, new_hard_link);}
  355. inline
  356. void create_hard_link(const path& to, const path& new_hard_link, system::error_code& ec) BOOST_NOEXCEPT
  357. {detail::create_hard_link(to, new_hard_link, &ec);}
  358. inline
  359. void create_symlink(const path& to, const path& new_symlink) {detail::create_symlink(to, new_symlink);}
  360. inline
  361. void create_symlink(const path& to, const path& new_symlink, system::error_code& ec) BOOST_NOEXCEPT
  362. {detail::create_symlink(to, new_symlink, &ec);}
  363. inline
  364. bool equivalent(const path& p1, const path& p2) {return detail::equivalent(p1, p2);}
  365. inline
  366. bool equivalent(const path& p1, const path& p2, system::error_code& ec) BOOST_NOEXCEPT
  367. {return detail::equivalent(p1, p2, &ec);}
  368. inline
  369. boost::uintmax_t file_size(const path& p) {return detail::file_size(p);}
  370. inline
  371. boost::uintmax_t file_size(const path& p, system::error_code& ec) BOOST_NOEXCEPT
  372. {return detail::file_size(p, &ec);}
  373. inline
  374. boost::uintmax_t hard_link_count(const path& p) {return detail::hard_link_count(p);}
  375. inline
  376. boost::uintmax_t hard_link_count(const path& p, system::error_code& ec) BOOST_NOEXCEPT
  377. {return detail::hard_link_count(p, &ec);}
  378. inline
  379. std::time_t creation_time(const path& p) { return detail::creation_time(p); }
  380. inline
  381. std::time_t creation_time(const path& p, system::error_code& ec) BOOST_NOEXCEPT
  382. { return detail::creation_time(p, &ec); }
  383. inline
  384. std::time_t last_write_time(const path& p) {return detail::last_write_time(p);}
  385. inline
  386. std::time_t last_write_time(const path& p, system::error_code& ec) BOOST_NOEXCEPT
  387. {return detail::last_write_time(p, &ec);}
  388. inline
  389. void last_write_time(const path& p, const std::time_t new_time)
  390. {detail::last_write_time(p, new_time);}
  391. inline
  392. void last_write_time(const path& p, const std::time_t new_time,
  393. system::error_code& ec) BOOST_NOEXCEPT
  394. {detail::last_write_time(p, new_time, &ec);}
  395. inline
  396. void permissions(const path& p, perms prms)
  397. {detail::permissions(p, prms);}
  398. inline
  399. void permissions(const path& p, perms prms, system::error_code& ec) BOOST_NOEXCEPT
  400. {detail::permissions(p, prms, &ec);}
  401. inline
  402. path read_symlink(const path& p) {return detail::read_symlink(p);}
  403. inline
  404. path read_symlink(const path& p, system::error_code& ec)
  405. {return detail::read_symlink(p, &ec);}
  406. inline
  407. bool remove(const path& p) {return detail::remove(p);}
  408. inline
  409. bool remove(const path& p, system::error_code& ec) BOOST_NOEXCEPT
  410. {return detail::remove(p, &ec);}
  411. inline
  412. boost::uintmax_t remove_all(const path& p) {return detail::remove_all(p);}
  413. inline
  414. boost::uintmax_t remove_all(const path& p, system::error_code& ec) BOOST_NOEXCEPT
  415. {return detail::remove_all(p, &ec);}
  416. inline
  417. void rename(const path& old_p, const path& new_p) {detail::rename(old_p, new_p);}
  418. inline
  419. void rename(const path& old_p, const path& new_p, system::error_code& ec) BOOST_NOEXCEPT
  420. {detail::rename(old_p, new_p, &ec);}
  421. inline // name suggested by Scott McMurray
  422. void resize_file(const path& p, uintmax_t size) {detail::resize_file(p, size);}
  423. inline
  424. void resize_file(const path& p, uintmax_t size, system::error_code& ec) BOOST_NOEXCEPT
  425. {detail::resize_file(p, size, &ec);}
  426. inline
  427. path relative(const path& p, const path& base=current_path())
  428. {return detail::relative(p, base);}
  429. inline
  430. path relative(const path& p, system::error_code& ec)
  431. {
  432. path base = current_path(ec);
  433. if (ec)
  434. return path();
  435. return detail::relative(p, base, &ec);
  436. }
  437. inline
  438. path relative(const path& p, const path& base, system::error_code& ec)
  439. {return detail::relative(p, base, &ec);}
  440. inline
  441. space_info space(const path& p) {return detail::space(p);}
  442. inline
  443. space_info space(const path& p, system::error_code& ec) BOOST_NOEXCEPT
  444. {return detail::space(p, &ec);}
  445. #ifndef BOOST_FILESYSTEM_NO_DEPRECATED
  446. inline bool symbolic_link_exists(const path& p)
  447. { return is_symlink(filesystem::symlink_status(p)); }
  448. #endif
  449. inline
  450. path system_complete(const path& p) {return detail::system_complete(p);}
  451. inline
  452. path system_complete(const path& p, system::error_code& ec)
  453. {return detail::system_complete(p, &ec);}
  454. inline
  455. path temp_directory_path() {return detail::temp_directory_path();}
  456. inline
  457. path temp_directory_path(system::error_code& ec)
  458. {return detail::temp_directory_path(&ec);}
  459. inline
  460. path unique_path(const path& p="%%%%-%%%%-%%%%-%%%%")
  461. {return detail::unique_path(p);}
  462. inline
  463. path unique_path(const path& p, system::error_code& ec)
  464. {return detail::unique_path(p, &ec);}
  465. inline
  466. path weakly_canonical(const path& p) {return detail::weakly_canonical(p);}
  467. inline
  468. path weakly_canonical(const path& p, system::error_code& ec)
  469. {return detail::weakly_canonical(p, &ec);}
  470. // test helper -----------------------------------------------------------------------//
  471. // Not part of the documented interface since false positives are possible;
  472. // there is no law that says that an OS that has large stat.st_size
  473. // actually supports large file sizes.
  474. namespace detail {
  475. BOOST_FILESYSTEM_DECL bool possible_large_file_size_support();
  476. } // namespace detail
  477. } // namespace filesystem
  478. } // namespace boost
  479. #include <boost/config/abi_suffix.hpp> // pops abi_prefix.hpp pragmas
  480. #endif // BOOST_FILESYSTEM3_OPERATIONS_HPP