[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ms-cifs
Subject:    Wildcards; case insensitivity
From:       Bruce Leverett <Bruce_Leverett () TRANSARC ! COM>
Date:       1997-04-22 20:03:30
[Download RAW message or body]


A few questions about wildcards and case-insensitive searching:

(1) The March 13 draft says that RENAME supports wildcards.  It says, "Multiple
    files may be renamed in response to a single request ..."  Can anyone
    explain this?  I do not see how you can rename multiple files with a single
    request, unless there is some way of specifying pattern variables in the
    old file name, and referring to them in the new file name.

(2) My server is exporting a UNIX-like file system, in which file names are
    case-sensitive.  I have assumed that for messages such as directory search,
    if case-insensitive searching is specified, I might return multiple files,
    even if there are no wildcards in the pathname.  Is this right?

    A corollary is that for messages such as CREATE (create file), I should not
    create the file if another file exists whose name is the same except for
    capitalization.  Right?  It occurred to me that my clients could then
    access multiple files with similar names, but they couldn't create such
    files.

    Yet another corollary is that for messages such as DELETE_DIRECTORY, I
    might end up removing a directory whose name is the same as the one
    specified except for capitalization.  Right?

(3) Because the DELETE (delete file) message supports wild cards, my server
    must do a directory search and delete all the files it finds.  This leads
    to several questions:

    (a) What is the correct recovery if there is a failure (e.g. if one of the
        files is read-only)?  Shoul I continue to delete files, or stop at
        that point?

    (b) Is it an error if one of the files is a directory?

    (c) If case-insensitivity is specified, I might find that multiple files
        match a pathname, even though it has no wildcard characters (see (2)
        above).  Should I delete them all?

----------------------------------------------------------------
Mailing List User's Guide; includes instructions for unsubscribing:
http://www.microsoft.com/sitebuilder/resource/mailfaq.asp.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic