only operate on files or symlinks