ZTree.com  | ZEN  | About...  

 Index   Back

I think any character which causes shortname creation matters   [Release]

By: Kim Henkel     Riverview, FL  
Date: Feb 08,2010 at 20:39
In Response to: Leading dot appears to matter (Juergen Hestermann)

> When creating ".temporary" on the target it will get the short name "tempor~1"
> automatically (while the source directory had "tempor~2"). Then the
> following creation of the long name "tempor~1" will fail I think.

This is not actually what is happening.
ZTree looks to see if TEMPOR~1 exists, and Windows says it does - but it's actually the shortname of ".temporary".
So no new directory is created, and files get copied to the same directory.

This is avoidable, by comparing the longname with the name Windows reports as existing, and will give the same results as explorer if you copied one folder at a time.

> So the short name of ".temporary" has to be copied too (if possible).

An API wasn't available until XP (so no NT or 2000 support), but I'm not sure this would solve all scenarios anyway.

> But this may also fail if another directory with the short name ".tempor~2"
> already exists on target.

Exactly.


Kim

1,191 views      
Thread locked
 

Messages in this Thread

 
96,656 Postings in 12,233 Threads, 350 registered users, 28 users online (0 registered, 28 guests)
Index | Admin contact |   Forum Time: May 16, 2024 - 2:24 pm UTC  |  Hits:63,504,758  (12,260 Today )
RSS Feed