Add error handling logic
symlink helper
complete initial api (copydir)