Move mkdir operation to create_symlink function