Q:

Capistrano how to resolve cannot overwrite directory '/var/local/app/current' with non-directory?

I am troubleshooting the error in the above title. I understand what is happening but while trying to trouble shoot this error, I've come across an interesting Github Issue with the solution. However, I don't understand the solution.
Here is the link Github Capistrano Issue
Basically, one user reports that the way to solve this issue is to implement the following:

Just make sure any directory that Capistrano is going to try to symlink to doesn't exist as a physical directory. That should probably also go for any file or directory you added to the :linked_files or :linked_dirs config option.

My question is simple. What does this user mean when he says to make sure the directory is not physical?

A:

I ran into the same issue running Capistrano 3.11.0, together with capistrano-maintenance 1.2.0. I managed to resolve it by, after a failed deploy, deleting the mysite/current directory and running ln -s mysite/releases/VERSION mysite/current and redeploying.

