Boost C++ Libraries: Ticket #2657: Feature request: readlink, nlink, copy_symlink, copy_directory, copy https://svn.boost.org/trac10/ticket/2657 <p> Walter Landry writes, </p> <p> I have recently upgraded from 1.32 to the current prerelease, and it feels like filesystem is missing a few convenience functions. </p> <blockquote> <p> 1) readlink: There is a way to create a symlink, but then no way to </p> <blockquote> <p> query it later. </p> </blockquote> </blockquote> <blockquote> <p> 2) nlink: Similarly, we can create a hard link, but can not query </p> <blockquote> <p> its link count. </p> </blockquote> </blockquote> <blockquote> <p> 3) copy_symlink: Note that this requires readlink in order to </p> <blockquote> <p> function. </p> </blockquote> </blockquote> <blockquote> <p> 4) copy_directory: create_directory creates directories with the </p> <blockquote> <p> mode S_IRWXU|S_IRWXG|S_IRWXO. That seems like a security hole waiting to happen. This would at least provide a way of inheriting access properties. </p> </blockquote> </blockquote> <blockquote> <p> 5) copy(): This would check what the first argument is and invoke </p> <blockquote> <p> the appropriate function (copy_file, copy_symlink, copy_directory). </p> </blockquote> </blockquote> <p> Except for nlink, I have already implemented all of these functions because I needed them. Is there any interest in getting these functions into the filesystem library? </p> <p> Cheers, Walter Landry wlandry_at_[hidden] </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2657 Trac 1.4.3 Steven Watanabe Sat, 30 May 2009 00:21:28 GMT component changed https://svn.boost.org/trac10/ticket/2657#comment:1 https://svn.boost.org/trac10/ticket/2657#comment:1 <ul> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">filesystem</span> </li> </ul> Ticket Beman Dawes Thu, 06 Oct 2011 14:47:42 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2657#comment:2 https://svn.boost.org/trac10/ticket/2657#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> All of these suggestions have been implemented and are part of Boost.Filesystem. </p> <p> Thanks! </p> <p> --Beman </p> Ticket