Login | Register
My pages Projects Community openCollabNet

Discussions > users [DISABLED] > Re: ntfs naming conventions

subversion
Discussion topic

There will be a brief maintenance window every Friday at 17:00 Pacific.
For further details, see CollabNet's maintenance and upgrade policy.

Back to topic list

Re: ntfs naming conventions

Author Dave Levitt <dave dot levitt at gmail dot com>
Full name Dave Levitt <dave dot levitt at gmail dot com>
Date 2009-09-16 06:58:06 PDT
Message The Win32 'CreateFile' API will cope with file and directory names
[embedded, leading and trailing spaces] without issue. A handle to the
file will be returned to the calling process.

The Console Command Processor [e,g, cmd.exe] will only process a
subset of the available file names, trimming strings as part of the
parsing process. So, a program can create a file entry that cannot
easily be manipulated from the standard Windoze command prompt.

If you install an alternate command prompt [e.g. a Cygwin bash shell]
the shell's regular expression features should allow oddly named files
to be manipulated.

On Wed, Sep 16, 2009 at 5:49 AM, Jan Hendrik <list.jan.hendrik​@gmail.com> wrote:
> Concerning Re: ntfs naming conventions
> Ryan Schmidt wrote on 16 Sep 2009, 2:25, at least in part:
>
>> The Wikipedia says "the space and the period are not allowed as the
>> final character of a filename". To me, this means a filename like
>> "filename.ext " or "filename.ext." would not be acceptable but says
>> nothing about "filename .ext" or "filename..ext" which seem to me like
>>  valid filenames. Then again, I don't use Windows.
>
> A few quick tests on W2K SP4:
>
> Rename "filename.ext" to "filename.ext." => the added period at
> the end is dropped.  The same goes for added space.
>
> Rename "filename" to "filename." => dito.
>
> So you are right, Ryan.  In this context Wikimedia understands
> filename as one thing, with or without extension (and including the
> whole path, too?).
>
> JH
> --------------------​-------------------
> Freedom quote:
>
>     America has believed that in differentiation, not in uniformity,
>     lies the path of progress. It acted on this belief, it has advanced
>     human happiness, and it has prospered.
>               -- Louis D. Brandeis
>                  U.S. Supreme Court Justice, 1856-1941
>
> --------------------​--------------------​--------------
> http://subversion.ti​gris.org/ds/viewMess​age.do?dsForumId=106​5&dsMessageId=23​95431
>
> To unsubscribe from this discussion, e-mail: [users-unsubscribe@s​ubversion.tigris.org​].
>

« Previous message in topic | 6 of 13 | Next message in topic »

Messages

Show all messages in topic

ntfs naming conventions andrej12 Andras Igneczi 2009-09-15 20:38:32 PDT
     Re: ntfs naming conventions ryandesign Ryan Schmidt 2009-09-15 20:49:18 PDT
         Re: ntfs naming conventions janhendrik Jan Hendrik 2009-09-15 23:59:53 PDT
             Re: ntfs naming conventions ryandesign Ryan Schmidt 2009-09-16 00:25:18 PDT
                 Re: ntfs naming conventions janhendrik Jan Hendrik 2009-09-16 02:49:33 PDT
                     Re: ntfs naming conventions Dave Levitt <dave dot levitt at gmail dot com> Dave Levitt <dave dot levitt at gmail dot com> 2009-09-16 06:58:06 PDT
                         Re: ntfs naming conventions janhendrik Jan Hendrik 2009-09-16 07:23:47 PDT
                             Re: ntfs naming conventions eg <egoots at gmail dot com> eg <egoots at gmail dot com> 2009-09-16 13:02:46 PDT
                                 Re: ntfs naming conventions talden Talden 2009-09-16 17:41:36 PDT
                                     Re: ntfs naming conventions janhendrik Jan Hendrik 2009-09-22 06:17:37 PDT
                                         Re: ntfs naming conventions levyam Andy Levy 2009-09-22 06:34:47 PDT
                                             Re: ntfs naming conventions janhendrik Jan Hendrik 2009-09-22 06:42:14 PDT
         Re: ntfs naming conventions andrej12 Andras Igneczi 2009-09-16 00:27:56 PDT
Messages per page: