|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r63186 - trunk/libs/filesystem/v2/doc
From: bdawes_at_[hidden]
Date: 2010-06-21 09:22:45
Author: bemandawes
Date: 2010-06-21 09:22:45 EDT (Mon, 21 Jun 2010)
New Revision: 63186
URL: http://svn.boost.org/trac/boost/changeset/63186
Log:
Fix #4269. A better solution is for the user to move to version 3, which has a new tutorial.
Text files modified:
trunk/libs/filesystem/v2/doc/index.htm | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)
Modified: trunk/libs/filesystem/v2/doc/index.htm
==============================================================================
--- trunk/libs/filesystem/v2/doc/index.htm (original)
+++ trunk/libs/filesystem/v2/doc/index.htm 2010-06-21 09:22:45 EDT (Mon, 21 Jun 2010)
@@ -212,7 +212,7 @@
{
if ( find_file( itr->path(), file_name, path_found ) ) return true;
}
- else if ( itr->leaf() == file_name ) // see below
+ else if ( itr->path().filename() == file_name ) // see below
{
path_found = itr->path();
return true;
@@ -221,14 +221,12 @@
return false;
}</pre>
</blockquote>
-<p>The expression <i>itr->path().leaf() == file_name</i>, in the line commented <i>//
-see below</i>, calls the <i>leaf()</i> function on the <i>path</i> returned by
+<p>The expression <i>itr->path().filename() == file_name</i>, in the line commented <i>//
+see below</i>, calls the <i>filename()</i> function on the <i>path</i> returned by
calling the <i>path()</i> function of the <i>directory_entry </i>object pointed
-to by the iterator. <i>leaf()</i> returns a string which is a copy of the
+to by the iterator. <i>filename()</i> returns a string which is a copy of the
last (closest to the leaf, farthest from the root) file or directory name in the
<i>path</i> object.</p>
-<p>In addition to <i>leaf()</i>, several other function names use the
-tree/root/branch/leaf metaphor.</p>
<p>Notice that <i>find_file()</i> does not do explicit error checking, such as
verifying that the <i>dir_path</i> argument really represents a directory.
Boost.Filesystem functions throw
@@ -799,7 +797,7 @@
<hr>
<p>Revised
-<!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->11 June, 2010<!--webbot bot="Timestamp" endspan i-checksum="19839" --></p>
+<!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d %B, %Y" startspan -->21 June, 2010<!--webbot bot="Timestamp" endspan i-checksum="19840" --></p>
<p>© Copyright Beman Dawes, 2002-2005</p>
<p> Use, modification, and distribution are subject to the Boost Software
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk