-
Notifications
You must be signed in to change notification settings - Fork 267
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
Error: Can't create directory: File exists when remotepath is "/" #146
Comments
I need the full log. |
Here it is, looks like it's trying to create "/" folder [debug] < 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------\r\n220-You are user number 4 of 50 allowed.\r\n220-Local time is now 10:56. Server port: 21.\r\n220-This is a private system - No anonymous login\r\n220-IPv6 connections are also welcome on this server.\r\n220 You will be disconnected after 15 minutes of inactivity. |
I've known the problem. Please wait for the fix. |
Awesome, let me know if I can help in any way. |
@bliteknight I've made a fix-package . Please help me test it. |
Just installed it and it works. Thanks for the fix. [debug] < 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------\r\n220-You are user number 5 of 50 allowed.\r\n220-Local time is now 07:25. Server port: 21.\r\n220-This is a private system - No anonymous login\r\n220-IPv6 connections are also welcome on this server.\r\n220 You will be disconnected after 15 minutes of inactivity. |
I think the fix to this issue has created another issue. My remotePath is set to "/" because my ftp points to the root of my test site directory. Anything that attempts to gets published to the root receives the following error: "[sftp] Directoryname not valid". Anything that publishes to a subfolder in the root publishes fine. |
@alireainc Can you create a new issue with detail info? |
Same problem here, I removed and reinstalled the package 2 days ago, nothing changes, and if I get this error no files at all are uploaded. My setup is exactly the same as @alireainc I get this error every time I try to upload now :
Here is the FTP server log (FileZilla on a Windows Server) :
|
Same issue when auto uploading from root...
|
I'm getting what seems to be the same error there. Works when uploading a file that's not at the root of the workspace but throws this error when the file to upload is.
|
@simonpca File a new issue. |
Expected Behavior
File should be uploaded to the remote location
Actual Behavior
Throws an error: Error: Can't create directory: File exists
Steps to Reproduce the Problem
Requisites (important to diagnose the problem!)
Extension Logs
[info] connected
[error]: Error: Can't create directory: File exists
at makeError (C:\Users\bliteknight.vscode\extensions\liximomo.sftp-1.1.5\node_modules\ftp\lib\connection.js:1077:13)
at Parser. (C:\Users\bliteknight.vscode\extensions\liximomo.sftp-1.1.5\node_modules\ftp\lib\connection.js:116:25)
at emitTwo (events.js:106:13)
at Parser.emit (events.js:194:7)
at Parser._write (C:\Users\bliteknight.vscode\extensions\liximomo.sftp-1.1.5\node_modules\ftp\lib\parser.js:59:10)
at doWrite (_stream_writable.js:329:12)
at writeOrBuffer (_stream_writable.js:315:5)
at Parser.Writable.write (_stream_writable.js:241:11)
at Socket.ondata (C:\Users\bliteknight.vscode\extensions\liximomo.sftp-1.1.5\node_modules\ftp\lib\connection.js:277:20)
at emitOne (events.js:96:13)
Specifications
The text was updated successfully, but these errors were encountered: