Search code examples
macosshellgnusymlink

unstow directory causes warning


When I run:

stow -D folderName

I get:

WARNING! unstowing folderName would cause conflicts:
  * existing target is neither a link nor a directory: .DS_Store
All operations aborted.

How can I solve? I find this tip but I didn't understand it


Solution

  • Maybe try executing this command before stow:

    find folderName -name ".DS_Store" -depth -exec rm -f {} \;
    

    That will remove any .DS_Store files in folderName, which seems to be causing the issue.