Can't save empty file (0B)

I’m using Linux line break LF on Windows.

I’m editing a txt file with Notepad++ with line break LF through SFTP.
I delete all characters and click save. It save successfully. The file size becomes 0B.
But when I login the remote Linux by ssh and look up the file I edited before. The file is not 0B.
It seem like Raidrive can’t save empty file.

The same issue exists on WebDAV.

Here is the log:

2019-07-04 11:08:42.024 [INFO] SFTP (VOB_tools) : Check Change Thread Start
2019-07-04 11:19:53.559 [INFO] WebDAV (WebDAV) : Check Change Thread Start
2019-07-04 11:20:21.707 [ERROR] WebDAV API : WebDAV : This WebDAV Server does not support Range Header function.
2019-07-04 11:20:21.707 [ERROR] WEBDAVFILE FILE : /新建文本文档 (2).txt : DOWNLOAD ERROR : 5 : General Download Error
2019-07-04 11:20:21.707 [ERROR] WEBDAVFILE FILE : /新建文本文档 (2).txt : DownloadAllAndWait Failed : General Download Error : FileSize : 1 : Current : 0 : RemoteSize : 1 : DownloadError : True
2019-07-04 11:20:21.707 [ERROR] WEBDAVFILE FILE : /新建文本文档 (2).txt : Change Size Failed. Download Error for ChangeFileSize : OrgSize : 1 : NewSize : 1 : Cache Size : 2
2019-07-04 11:20:21.707 [ERROR] WebDAV (WebDAV : ChangeFileSize Fail : 新建文本文档 (2).txt : 1 : Error : {“WinErrorCode”:112,“NotifyErrorCode”:203,“RaiException”:“Remote Download Fail for ChangeFileSize (After Action)”,“Filename”:"/新建文本文档 (2).txt"}
2019-07-04 11:20:21.707 [ERROR] FILESYSTEM : WebDAV : SetEndOfFile Fail : Exception : {“WinErrorCode”:112,“NotifyErrorCode”:203,“RaiException”:“Remote Download Fail for ChangeFileSize (After Action)”,“Filename”:"/新建文本文档 (2).txt"}
2019-07-04 11:20:21.707 [ERROR] WEBDAVFILE FILE : /新建文本文档 (2).txt : Final : File is modified but data not filled : Canceled : isClose : True : OpenFileInfo : IsDirectory:False, IsReadSequential:False, IsWriteSequential:False, IsReadMode:False, IsWriteMode:True, Attributes:32

I confirmed the situation you mentioned.
We will fix the error in the next version and distribute it.
Thank you for your feedback.

Awesome!!! Thanks for your reply.

1 Like