Opened 18 years ago

Last modified 18 years ago

#3060 closed Bug report

empty directory will skip when transfer whole directory

Reported by: tommywu Owned by: Tim Kosse
Priority: normal Component: Other
Keywords: Cc: tommywu, Tim Kosse
Component version: Operating system type:
Operating system version:

Description

I don't know this is a bug or feature not implement.
In FZ 2.x, empty directory will be created if we
transfer whole directory.
But in FZ 3, empty directory won't be created, if we
transfer whole directory, only file will be transferred.

for both sftp and ftp, either local or remote.

Attachments (2)

ftp_error.txt (8.3 KB ) - added by tommywu 18 years ago.
upload empty directory error in FTP
sftp_erro.txt (6.1 KB ) - added by tommywu 18 years ago.
upload empty directory error in SFTP

Download all attachments as: .zip

Change History (7)

comment:1 by tommywu, 18 years ago

I wrote a small patch to add this function. Just add
wxFileName::GetPathSeparator() to local filename, then add
this directory to queue.

when process queue, if last character of local filename is
wxFileName::GetPathSeparator(), then just create the
directory, then return OK.

here is the patch:
http://sourceforge.net/tracker/index.php?func=detail&aid=1580295&group_id=21558&atid=372243

comment:2 by Tim Kosse, 18 years ago

Thanks for reporting. This issue has been fixed in the CVS
repository and will be available with the next version.

by tommywu, 18 years ago

Attachment: ftp_error.txt added

upload empty directory error in FTP

comment:3 by tommywu, 18 years ago

I test this for 2006/10/23 night build and today's CVS code,
it work for download, but fail for upload.
create a test case locally:
create directory: test
create directory: test\1
create directory: test\2
create directory: test\3

then upload directory 'test'.
FTP error log from status window as attachment.

by tommywu, 18 years ago

Attachment: sftp_erro.txt added

upload empty directory error in SFTP

comment:4 by tommywu, 18 years ago

sftp error log as attachment: sftp_error.txt

comment:5 by Tim Kosse, 18 years ago

Thanks, missed one code path. Fixed in CVS now.

Note: See TracTickets for help on using tickets.