betty.os module

Provide OS interaction utilities.

Create a symlink to a source path, or copy it to its destination otherwise.

For most purposes, Betty requires files to be accessible at certain paths, rather than that these paths provide unique files. Therefore, the fastest thing to do is create symlinks. In case that fails, such as when the source and destination are on different disks, copy the file instead.