Groups | Blog | Home
all groups > iis ftp > october 2007 >

iis ftp : dirs with trailing . (period)


A. Vreugdenhil
10/18/2007 6:31:01 AM
Hi everyone,

IIS FTP seems to work inconsistently with directory names that end with a
period.

MKD creates the dir without the period, but CWD and the other commands do
not strip it and alert you that "test." doesn't exist.
The strange thing is: windows (NTFS) does allow you to create directories
with a trailing period.

I tried several clients on several servers, but only the MS server seems to
have trouble with it.

Is this a bug? Is it on all versions? I can't find any documentation on it...
Does anyone have a clue on this?
Bernard Cheah [MVP]
10/19/2007 12:00:00 AM
I tested with w2k3, it won't allows me to create 'test.' directoy but
'test,' is acceptable.
if windows detects that a period is and the end, it truncate it making it
'test' only for the folder name.

this worth though, 'test.folder'.


--
Regards,
Bernard Cheah
http://www.iis.net/
http://msmvps.com/blogs/bernard/


[quoted text, click to view]

A. Vreugdenhil
10/19/2007 12:01:22 AM

Yes, I noticed all that too.
Isn't it strange?
I'm writing a script that copies stuff to another server, but now it seems I
can never upload perfectly valid dirs if their names end with a period :(

At least two clients just create the given dir, but when you start uploading
the contents the dirs has not been created but an entirely different dir has.

Is this a bug or what???


[quoted text, click to view]
A. Vreugdenhil
10/19/2007 8:03:00 AM

Thanks for the info. This helped me understand the problem.

But now for the next problem: How do I stop people from creating dirnames
with trailing periods if windows itself fakes allowing it?

I guess I'll have to make use of that crude workaround myself too.
Any idea how it works or where I can find that info?


[quoted text, click to view]
.._..
10/19/2007 2:52:21 PM
The allowed characters in folder names and file names are different from
Unix to Windows.

To make interoperablity, you need to follow BOTH of the standards with all
files and folders.

"." is an illegal character for the end of a folder name in the underlying
file system for Windows. The GUI will let you do it, but it's using a crude
work around to display the "."

For best results, use numbers, letters, underscores, and dashes for folder
names. NO SPACES. Use ALL lower case letters (Unix is case sensitive,
Windows is not.) Use three or four letter file extensions, or no file
extension. Use a single dot to differentiate the file extension from the
file name. Do not use more than one dot, do not use punctuation, etc.

[quoted text, click to view]

Bernard Cheah [MVP]
10/21/2007 12:00:00 AM
Don't think you have much control about this.
Have you figure out how it was created? I can't create it via command
prompt/windows explorer/ftp.exe


--
Regards,
Bernard Cheah
http://www.iis.net/
http://msmvps.com/blogs/bernard/


[quoted text, click to view]

A. Vreugdenhil
10/22/2007 12:10:01 AM


Windows explorer worked... on Vista now that I think of it.
I wonder what would happen if you copy something containing that period from
a normal network share?


[quoted text, click to view]
Bernard Cheah [MVP]
10/22/2007 4:42:19 PM
vista? I double so. I can't create any folder with period and the end.
I had try xp, w2k3, vista, w2k8. when you create either via explorer or
command prompt.
say mkdir aa.
aa is created. then if you cd to the folder say 'cd aa.' or 'cd aa'
it still goes into the folder.


--
Regards,
Bernard Cheah
http://www.iis.net/
http://msmvps.com/blogs/bernard/


[quoted text, click to view]

AddThis Social Bookmark Button