guest wrote:
Command 'rm -f -r "db"'
failed with return code 1 and error message
rm: cannot remove `db/db.db': Value too large for defined data type
rm: cannot remove directory `db': File exists
rm: cannot remove directory `db': File exists.
What does happen, if you type the command 'rm -f -r "db"' on command-line by yourself (from SSH terminal for example)? As you may see WinSCP in this case tries to delete the whole directory at once, leaving deletion of files in the directory to the server. It does not care about them, so it as well does not case that the file has > 2 GB.
There aren't any problems when I delete the folder from a SSH terminal by rm -r -f db.db. I still think it's the filesize. The file isn't recognized, so the folder isn't empty and can't be deleted.
The file db.db is greater than 2 GB. It's also not shown in the remote directory. It is also not recognized, when I select properties and calculate for a folder. I get the wrong size without the size of the big file.
This may be different case. Can you please post a WinSCP log file showing the directory listing of the respective directory?
Here you have the log entry:
Getting size of directory "words"
Listing directory "words".
ls -la "words" ; echo "WinSCP: this is end-of-file:$?"
ls: words/db.db: Value too large for defined data type
total 1414694
drwxr-xr-x 2 af069 stud 512 Jan 18 15:55 .
drwxr-xr-x 7 af069 stud 512 Jan 18 16:07 ..
-rw-r----- 1 af069 stud 8192 Jan 18 13:37 __db.001
-rw-r----- 1 af069 stud 270336 Jan 18 13:37 __db.002
-rw-r----- 1 af069 stud 98304 Jan 18 13:37 __db.003
-rw-r----- 1 af069 stud 16384 Jan 18 13:37 __db.004
-rw-r----- 1 af069 stud 389464064 Jan 18 15:55 db.index_SENTENCE
-rw-r----- 1 af069 stud 1058062336 Jan 18 15:43 db.index_WORD
-rw-r----- 1 af069 stud 28621 Jan 18 15:55 log.0000001460
WinSCP: this is end-of-file:1
And for comparison the output from a SSH terminal for the same folder:
/users/database -> ls -la words
total 4079758
drwxr-xr-x 2 af069 stud 512 Jan 18 15:55 .
drwxr-xr-x 7 af069 stud 512 Jan 18 16:07 ..
-rw-r----- 1 af069 stud 8192 Jan 18 13:37 __db.001
-rw-r----- 1 af069 stud 270336 Jan 18 13:37 __db.002
-rw-r----- 1 af069 stud 98304 Jan 18 13:37 __db.003
-rw-r----- 1 af069 stud 16384 Jan 18 13:37 __db.004
-rw-r----- 1 af069 stud 2727677952 Jan 18 15:09 db.db
-rw-r----- 1 af069 stud 389464064 Jan 18 15:55 db.index_SENTENCE
-rw-r----- 1 af069 stud 1058062336 Jan 18 15:43 db.index_WORD
-rw-r----- 1 af069 stud 28621 Jan 18 15:55 log.0000001460
MfG