Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How To check if target NSName before rename is not already exists

3 views
Skip to first unread message

tester

unread,
Aug 18, 2006, 12:02:52 AM8/18/06
to
Hello!

I want to rename longnames properly so I "transcode" DOS names to
LongNameSpace and Rename it in target Namespace. How to check before
Rename if target Longname is not occupied by another file in
longnamespace? (the dir-path to file I have is DOS-path).

Regards,
T.

John Baird

unread,
Aug 21, 2006, 11:22:08 PM8/21/06
to

"tester" <tes...@tester.test> wrote in message
news:MZaFg.541$cu6...@prv-forum2.provo.novell.com...

I'm not a CLIB expert so cant name a function but look for one that returns
information about the file and use that. If using the X-plat APIs I'd use
NWGetNSEntryInfo. The other possibility is to simply try to rename the file
and you should get a specific error back if the rename fails because the
name is already in use.

John


0 new messages