This utility allows you to replicate the structure of a directory excluding files. Once replicated in another point, the directory tree can be compressed for backup (and restored anywhere).
The Copy Directory Tree Utility (from now cptree) is implemented as console application, so, for use it, you need to open a
Command Prompt in Windows OS Family or some clone of
bash in Linux or other Unix. In some Windows OS you can use cptree through
Latest available stable download: 18.104.22.168 stable.
Latest available download: 22.214.171.124 stable.
Latest available version on source code control @github:
126.96.36.199 beta (released 05 Jun 2012).
The low number of files (two: a main executable - cptree.exe - and a support library -
CommandLine.dll -) that composes this software make it an optimal candidate for
- In the upper right section of this page click the release version number under the caption 'Current Release'.
- Download the package marked as 'runtime binary' and named cptree-$VERSION$-bin-zip ($VERSION$ = version number, e.g.:
- Unzip the file in a temporary location and create a new directory for host cptree's files (e.g.:
- Add your cptree directory (in our example: C:\NoInstall\CopyDirTree) to
PATH environment variable (more on
wikipedia and MS Support).
cptree is currently a young software and has few options, but its core function is used as follows (and will not change in future versions!):
C:\> cptree D:\Download Download_Tree
Issuing this command will replicate all directories inside the first directory excluding files (in the example,
D:\Download), in the second one (C:\ DownloadTree_); the destination root directory can exist or not .
Invoking cptree specifying a single directory, will make the program list the complete directory content.
I've worked some time with the beta release (188.8.131.52) under Linux/Mono without problems.
The 1.1 stable release was tested (and unit-tested) under Linux/Mono and it's working without any problem. Read the
release page for more details.
For bug reports and
Author's E-Mail (now changed, email@example.com)