Hardlink sub-directories and files

loial jldunn2000 at gmail.com
Tue Aug 2 05:32:54 EDT 2011

I am trying to hardlink all files in a directory structure using

This works fine for files, but the directory also contains sub-
directories (which themselves contain files and sub-directories).
However I do not think it is possible to hard link directories ?

So presumably I would need to do a mkdir for each sub-directory
Or is there an easier way to hardlink everything in a directory

The requirement is for hard links, not symbolic links

More information about the Python-list mailing list