Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Can't delete files or directories

I believe that this was fixed in 4.0.6.
Guest

Can't delete files or directories

When I log in to a particular remote server, which is a Windows system, using FTP, I cannot delete files. I can't even delete a directory I just created. A dialog pops up and says:

Error deleting '<name of my file>'.

<name of my file>: The process cannot access the file because it is being used by another process.

That explanation seems unlikely, because I can move the file or directory I am trying to delete. I just can't delete it.

If I log in with Windows command-line ftp or with Windows Explorer, I can delete files and directories as expected.

I am using WinSCP 4.0.5 (Build 354). I have not upgraded recently.

I am running Microsoft Windows XP [Version 5.1.2600].

This problem occurs with FTP protocol.

This is in the GUI, Commander style, working with just one file or directory at a time.

The error occurs if I click on the file and press Delete, then click OK on the confirmation dialog. The result is the same if I right-click the file or choose Delete from the Files menu.

I'll try to get the server software information, but I don't have it now.

A log is below:

. 2009-07-15 10:57:36.468 --------------------------------------------------------------------------
. 2009-07-15 10:57:36.468 WinSCP Version 4.0.5 (Build 354) (OS 5.1.2600 Service Pack 2)
. 2009-07-15 10:57:36.468 Login time: Wednesday, July 15, 2009 10:57:36 AM
. 2009-07-15 10:57:36.468 --------------------------------------------------------------------------
. 2009-07-15 10:57:36.468 Session name: Extras server
. 2009-07-15 10:57:36.468 Host name: ftp1.<mydomain>.com (Port: 21)
. 2009-07-15 10:57:36.484 User name: <windows_domain>\<user> (Password: Yes, Key file: No)
. 2009-07-15 10:57:36.484 Tunnel: No
. 2009-07-15 10:57:36.484 Transfer Protocol: FTP
. 2009-07-15 10:57:36.484 Ping type: C, Ping interval: 30 sec; Timeout: 15 sec
. 2009-07-15 10:57:36.484 Proxy: none
. 2009-07-15 10:57:36.484 FTP: Passive: Yes
. 2009-07-15 10:57:36.484 Local directory: C:\Documents and Settings\<myuser>\My Documents, Remote directory: /<my_home_dir>, Update: No, Cache: Yes
. 2009-07-15 10:57:36.484 Cache directory changes: Yes, Permanent: Yes
. 2009-07-15 10:57:36.484 DST mode: 1
. 2009-07-15 10:57:36.484 --------------------------------------------------------------------------
. 2009-07-15 10:57:36.609 Connecting to ftp1.<mydomain>.com ...
. 2009-07-15 10:57:36.625 Connected with ftp1.<mydomain>.com. Waiting for welcome message...
< 2009-07-15 10:57:36.625 220 Microsoft FTP Service
> 2009-07-15 10:57:36.625 USER <windows_domain>\<user>
< 2009-07-15 10:57:36.656 331 Password required for <windows_domain>\<user>.
> 2009-07-15 10:57:36.656 PASS ********
< 2009-07-15 10:57:36.703 230 User <windows_domain>\<user> logged in.
> 2009-07-15 10:57:36.703 SYST
< 2009-07-15 10:57:36.734 215 Windows_NT
> 2009-07-15 10:57:36.734 FEAT
< 2009-07-15 10:57:36.765 211-FEAT
< 2009-07-15 10:57:37.000 SIZE
< 2009-07-15 10:57:37.000 MDTM
< 2009-07-15 10:57:37.000 211 END
. 2009-07-15 10:57:37.000 Connected
. 2009-07-15 10:57:37.000 --------------------------------------------------------------------------
. 2009-07-15 10:57:37.000 Using FTP protocol.
. 2009-07-15 10:57:37.000 Doing startup conversation with host.
> 2009-07-15 10:57:37.000 PWD
< 2009-07-15 10:57:37.046 257 "/<my_home_dir>" is current directory.
. 2009-07-15 10:57:37.046 Changing directory to "/<my_home_dir>".
> 2009-07-15 10:57:37.046 CWD /<my_home_dir>
< 2009-07-15 10:57:37.078 250 CWD command successful.
. 2009-07-15 10:57:37.078 Getting current directory name.
> 2009-07-15 10:57:37.078 PWD
< 2009-07-15 10:57:37.109 257 "/<my_home_dir>" is current directory.
. 2009-07-15 10:57:37.125 Retrieving directory listing...
> 2009-07-15 10:57:37.125 TYPE A
< 2009-07-15 10:57:37.156 200 Type set to A.
> 2009-07-15 10:57:37.156 PASV
< 2009-07-15 10:57:37.187 227 Entering Passive Mode (63,147,65,240,11,70).
> 2009-07-15 10:57:37.187 LIST -a
< 2009-07-15 10:57:37.265 125 Data connection already open; Transfer starting.
< 2009-07-15 10:57:37.500 226 Transfer complete.
. 2009-07-15 10:57:37.500 Directory listing successful
. 2009-07-15 10:57:37.500 Startup conversation with host finished.
. 2009-07-15 10:57:55.890 Creating directory "newly_created_directory".
> 2009-07-15 10:57:55.890 CWD /<my_home_dir>/
< 2009-07-15 10:57:55.921 250 CWD command successful.
> 2009-07-15 10:57:55.921 MKD newly_created_directory
< 2009-07-15 10:57:55.953 257 "newly_created_directory" directory created.
. 2009-07-15 10:57:55.953 Retrieving directory listing...
> 2009-07-15 10:57:55.953 TYPE A
< 2009-07-15 10:57:56.000 200 Type set to A.
> 2009-07-15 10:57:56.000 PASV
< 2009-07-15 10:57:56.031 227 Entering Passive Mode (63,147,65,240,11,77).
> 2009-07-15 10:57:56.031 LIST -a
< 2009-07-15 10:57:56.093 125 Data connection already open; Transfer starting.
< 2009-07-15 10:57:56.296 226 Transfer complete.
. 2009-07-15 10:57:56.296 Directory listing successful
. 2009-07-15 10:58:04.640 Deleting file "newly_created_directory".
. 2009-07-15 10:58:04.640 Retrieving directory listing...
> 2009-07-15 10:58:04.640 CWD /<my_home_dir>/newly_created_directory/
< 2009-07-15 10:58:04.671 250 CWD command successful.
> 2009-07-15 10:58:04.671 PWD
< 2009-07-15 10:58:04.703 257 "/<my_home_dir>/newly_created_directory" is current directory.
> 2009-07-15 10:58:04.703 TYPE A
< 2009-07-15 10:58:04.750 200 Type set to A.
> 2009-07-15 10:58:04.750 PASV
< 2009-07-15 10:58:04.781 227 Entering Passive Mode (63,147,65,240,11,81).
> 2009-07-15 10:58:04.781 LIST -a
< 2009-07-15 10:58:04.843 125 Data connection already open; Transfer starting.
< 2009-07-15 10:58:05.046 226 Transfer complete.
. 2009-07-15 10:58:05.046 Directory listing successful
> 2009-07-15 10:58:05.046 RMD /<my_home_dir>/newly_created_directory/
< 2009-07-15 10:58:05.078 550 /<my_home_dir>/newly_created_directory: The process cannot access the file because it is being used by another process.
. 2009-07-15 10:58:05.078 Asking user:
. 2009-07-15 10:58:05.078 Error deleting file 'newly_created_directory'. ("/<my_home_dir>/newly_created_directory: The process cannot access the file because it is being used by another process. ")
. 2009-07-15 10:58:10.546 Retrieving directory listing...
> 2009-07-15 10:58:10.546 CWD /<my_home_dir>/
< 2009-07-15 10:58:10.578 250 CWD command successful.
> 2009-07-15 10:58:10.578 PWD
< 2009-07-15 10:58:10.625 257 "/<my_home_dir>" is current directory.
> 2009-07-15 10:58:10.625 TYPE A
< 2009-07-15 10:58:10.656 200 Type set to A.
> 2009-07-15 10:58:10.656 PASV
< 2009-07-15 10:58:10.687 227 Entering Passive Mode (63,147,65,240,11,86).
> 2009-07-15 10:58:10.687 LIST -a
< 2009-07-15 10:58:10.750 125 Data connection already open; Transfer starting.
< 2009-07-15 10:58:10.890 226 Transfer complete.
. 2009-07-15 10:58:10.890 Directory listing successful
. 2009-07-15 10:58:17.187 Disconnected from server