Natizyskunk / vscode-sftp

Super fast sftp/ftp extension for VS Code
Other
373 stars 68 forks source link

File contents missing #137

Open LiangHui6 opened 2 years ago

LiangHui6 commented 2 years ago

Hi,when I use vscode-sftp's Upload Folder,log show many folder transfered.But many file's contents are empty,now I want to regain my files,which are important for me.so How do I recover my files?

LiangHui6 commented 2 years ago

sftp log show [info] local ->remote /media/data/M2019/lxb/ /run.py [info] local ->remote /media/data/M2019/lxb/ /test.py [info] local ->remote /media/data/M2019/lxb/ /train.py

[info] config at /media/data/M2019/lxb {"remotePath":"/media/data/M2019/lxb","uploadOnSave":true,"useTempFile":false,"openSsh":false,"downloadOnOpen":false,"ignore[],"concurrency":4,"protocol":"sftp","connectTimeout":10000,"interactiveAuth":false,"secure":false,"remoteTimeOffsetInHours":0,"name":"My Server","host":"219.216.65.222","port":22,"username":"**"}

[03-25 09:25:45] [warn] ENOENT: no such file or directory, open '/media/data/M2019/lxb/.ssh/config' load /media/data/M2019/lxb/.ssh/config failed

[03-25 09:33:15] [info] local ➞ remote /media/data/M2019/lxb/data/img_celeba/030255.jpg [03-25 09:33:15] [info] local ➞ remote /media/data/M2019/lxb/data/img_celeba/030256.jpg [03-25 09:33:15] [info] local ➞ remote /media/data/M2019/lxb/data/celeba-hq1/celeba-128/045081.jpg [03-25 09:33:15] [info] local ➞ remote /media/data/M2019/lxb/data/celeba-hq1/celeba-128/045086.jpg [03-25 09:33:15] [info] local ➞ remote /media/data/M2019/lxb/data/celeba-hq1/celeba-128/045092.jpg [03-25 09:33:15] [info] local ➞ remote /media/data/M2019/lxb/data/img_celeba/030257.jpg

LiangHui6 commented 2 years ago

Hi,when I use vscode-sftp's Upload Folder,log show many folder transfered.But many file's contents are empty,now I want to regain my files,which are important for me.

so How do I recover my files?

Natizyskunk commented 2 years ago

@LiangHui6, Firstly as a security you should always have a backup of your files. now if you've uploaded files on your server and you haven't touch them on your local you shouldb e able to find them untouched on your local. Same the other way (from server to local and server not touched).

If you have empty files/folders on both ends (server and local) then i'm afraid i can't do much more for you.

Natizyskunk commented 1 year ago

Related issues : #186, #259

Tomippe commented 1 year ago

Some files are 0KB when I download each folder. I'm in a Japanese environment, but my file and folder names do not contain East Asian characters.

image