--- ftp.backend.inc@revision=1.3.2.21&pathrev=DRUPAL-6--1-9	2009-07-07 02:00:19.976000000 +0700
+++ ftp.backend.inc	2009-07-07 02:07:55.249000000 +0700
@@ -143,7 +143,7 @@
   // Process each of the files.
   foreach ($files AS $index => $file) {
     ftp_chdir($connect, "/");
-    if (trim($file, "\\/") != $file) {
+    if (is_dir($extract_dir . $file)) {
       if (!@ftp_mkdir($connect, "$ftp_path/$file") && !@ftp_chdir($connect, "$ftp_path/$file")) {
         drupal_set_message(t("Unable to create directory @file", array('@file' => $file)), 'error');
         return FALSE;
