-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sync error: Remote dir might not exist or you don't have permission on this path! #43
Comments
The fix for this, for the SFTPFileSynchronizer, is to wrap the contents of the for loop on line 129 with a check to make sure there is a directory to create (if there isn't, then the file is in the root of the project). Here's the changed for loop: https://gist.github.com/cfsilence/5e700a89fe8646a20fe3f490ddc20d0c |
I've confirmed my fix in a local version, please update the plugin (and the other protocols) so others can avoid this nasty bug too! |
I'll have to do a proper debug but it might be that the real issue is in Utils.splitPath which doesnt return a proper list of paths to create. |
Cool. My workaround is getting me by far now, but at least the issue is on your radar. Thanks for developing this plugin, it's pretty great. |
I just hit the same bug. I will try your workaround @cfsilence. Thanks |
When using SFTP to sync a project, everything works fine except for my build.gradle file in the project root which throws the error:
11:22 AM Sync error: Remote dir /home/pi/Projects/pi-spark might not exist or you don't have permission on this path!
Any ideas?
The text was updated successfully, but these errors were encountered: