[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: ntfs naming conventions

From: Dave Levitt <dave.levitt_at_gmail.com>
Date: Wed, 16 Sep 2009 09:58:04 -0400

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_at_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.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2395431
> To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].


To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-09-16 15:58:57 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.