[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master e33e392 22/33: Correct and reformat the modif
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master e33e392 22/33: Correct and reformat the modify_directory() documentation |
Date: |
Mon, 3 May 2021 08:15:54 -0400 (EDT) |
branch: master
commit e33e3927dbc6107833bba525d471a91d3e6b5791
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Correct and reformat the modify_directory() documentation
A filesystem path is empty if fs::path::empty() returns 'true';
fs::path::has_filename() means something else.
---
path_utility.cpp | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/path_utility.cpp b/path_utility.cpp
index 86fa92b..efe61d2 100644
--- a/path_utility.cpp
+++ b/path_utility.cpp
@@ -66,13 +66,14 @@
/// evokes chdir(2) and cd(1).
///
/// Asserted precondition:
-/// - 'original_filepath' is not empty (i.e., true == has_filename())
+/// - argument 'original_filepath' has a nonempty basename
+/// (i.e., true == has_filename())
/// It is notably not required that 'supplied_directory' name an
/// actual existing directory.
///
-/// std::filesystem provides no way to test whether a path has the form
-/// of a directory. Its fs::is_directory() asks the operating system
-/// whether or not a directory exists, so
+/// std::filesystem provides no way to test whether a path has the
+/// form of a directory. Its fs::is_directory() asks the operating
+/// system whether or not a directory exists, so
/// is_directory("/usr/lib")
/// returns 'true' iff the OS reports that such a directory exists;
/// but the same function call would return 'false' after
- [lmi-commits] [lmi] master 325e88a 12/33: Increase filename portability, (continued)
- [lmi-commits] [lmi] master 325e88a 12/33: Increase filename portability, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master 271a1b8 09/33: Note a deferred boost-migration question, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master 2025958 06/33: Names are stronger than comments, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master bb267b7 18/33: Reinstate some recently-removed documentation, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master 6d7a545 26/33: Reinsert a required empty line, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master ea4515f 04/33: Further deboostify, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master 4faab10 01/33: Adjust whitespace for microconcinnity, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master f4f4756 05/33: Resolve a marked defect [283], Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master c98c00d 10/33: Say "basename" rather than "leaf", Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master 1a68606 23/33: Conserve 80-character maximum width, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master e33e392 22/33: Correct and reformat the modify_directory() documentation,
Greg Chicares <=
- [lmi-commits] [lmi] master fd44389 03/33: Include appropriate headers, and say why they're included, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master fdc0f5a 07/33: Deboostify even more, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master 41274a8 14/33: Improve documentation, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master e4d2f31 08/33: Rename a function, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master 2038991 15/33: Improve concinnity, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master 9235f33 16/33: Avoid implicit conversion to fs::path, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master 4ab2c4e 20/33: Further improve modify_directory() documentation, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master b64436f 19/33: Improve modify_directory() documentation and tests, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master 0e3d61a 21/33: Rework modify_directory() documentation; augment unit test, Greg Chicares, 2021/05/03
- [lmi-commits] [lmi] master 40096c3 24/33: Conserve 70-character comment width, Greg Chicares, 2021/05/03