LLFIO  v2.00
clone.hpp File Reference

Provides a directory tree clone algorithm. More...

#include "../file_handle.hpp"
#include "traverse.hpp"

Namespaces

 llfio_v2_xxx
 The LLFIO namespace.
 
 llfio_v2_xxx::algorithm
 Collection of file system based algorithms.
 

Functions

result< file_handle::extent_type > llfio_v2_xxx::algorithm::clone_or_copy (file_handle &src, const path_handle &destdir, path_view destleaf={}, bool preserve_timestamps=true, bool force_copy_now=false, file_handle::creation creation=file_handle::creation::always_new, deadline d={}) noexcept
 Clone or copy the extents of the filesystem entity identified by src to destdir optionally renamed to destleaf. More...
 
result< bool > llfio_v2_xxx::algorithm::relink_or_clone_copy_unlink (file_handle &src, const path_handle &destdir, path_view destleaf={}, bool atomic_replace=true, bool preserve_timestamps=true, bool force_copy_now=false, deadline d={}) noexcept
 Relink or clone-unlink/copy-unlink the extents of the filesystem entity identified by src to destdir optionally renamed to destleaf. This lets you relink files across filing systems, with as close as possible matching of semantics to atomic relinking. More...
 

Detailed Description

Provides a directory tree clone algorithm.