Zip Component, Email Component, Encryption Component ActiveX Control for Zip Compression .NET Components for ASP.NET
ActiveX and .NET Components for Zip Compression, Encryption, Email, XML, S/MIME, HTML Email, Character Encoding, Digital Certificates, FTP, and more ASP Email ActiveX Component

Index of Chilkat Blog Posts

October 23, 2007

FTP PutTree - MKD Cannot create a file when that file already exists.

You may notice the following "errors" in the FTP2’s SessionLog after calling PutTree.

MKD /test123/abc123
550 /test123/abc123: Cannot create a file when that file already exists.

These are normal and intentional. When building the directory tree on the FTP server, it is more efficient for the FTP2 client to simply issue MKD commands to ensure a directory is created if it does not already exists. The error is ignored (and harmless). This is more efficient than checking to see if the directory already exists, and then potentially sending a MKD command, which would be 2 command/response round trips to the FTP server.

Privacy Statement. Copyright 2000-2011 Chilkat Software, Inc. All rights reserved.
Send feedback to

Components for Microsoft Windows XP, 2000, 2003 Server, Vista, Windows 7, and Windows 95/98/NT4.