add directories for files, symlink functionality