MCPcopy Create free account
hub / github.com/boostorg/filesystem / remove

Function remove

src/operations.cpp:1520–1534  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1518 }
1519
1520 BOOST_FILESYSTEM_DECL
1521 bool remove(const path& p, error_code* ec)
1522 {
1523 error_code tmp_ec;
1524 file_type type = query_file_type(p, &tmp_ec);
1525 if (error(type == status_error, tmp_ec, p, ec,
1526 "boost::filesystem::remove"))
1527 return false;
1528
1529 // Since POSIX remove() is specified to work with either files or directories, in a
1530 // perfect world it could just be called. But some important real-world operating
1531 // systems (Windows, Mac OS X, for example) don't implement the POSIX spec. So
1532 // remove_file_or_directory() is always called to kep it simple.
1533 return remove_file_or_directory(p, type, ec);
1534 }
1535
1536 BOOST_FILESYSTEM_DECL
1537 boost::uintmax_t remove_all(const path& p, error_code* ec)

Callers 10

bad_removeFunction · 0.50
resize_file_testsFunction · 0.50
remove_testsFunction · 0.50
remove_symlink_testsFunction · 0.50
copy_file_testsFunction · 0.50
copy_symlink_testsFunction · 0.50
testFunction · 0.50
operations_testFunction · 0.50
cpp_mainFunction · 0.50

Calls 3

query_file_typeFunction · 0.85
errorFunction · 0.85
remove_file_or_directoryFunction · 0.85

Tested by 10

bad_removeFunction · 0.40
resize_file_testsFunction · 0.40
remove_testsFunction · 0.40
remove_symlink_testsFunction · 0.40
copy_file_testsFunction · 0.40
copy_symlink_testsFunction · 0.40
testFunction · 0.40
operations_testFunction · 0.40
cpp_mainFunction · 0.40