Scp - not a regular file - how to fix

If you are trying to copy some path to the host
scp root@IP:/path/ /path/on/local_pc
And you are receiving not a regular file error, just add -r param:
scp -r root@IP:/path/ /path/on/local_pc
Because to support coping folders you have to use -r param.
This is it.
Be hinty 🤘