<div dir="ltr">On Wed, Nov 7, 2012 at 2:16 PM, <span dir="ltr"><<a href="mailto:timothyhobbs@seznam.cz" target="_blank">timothyhobbs@seznam.cz</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>And
this works fine on linux, but I wonder. On other systems, is "." and
".." allowed as file names? Couldn't a windows user actually end up with
a file name named "." and this method would fail?<br></div></blockquote><div><br></div><div>Windows treats dots in filenames specially as well, although differently specially. I am not sure about . but .. certainly works on Windows if you're not in the drive's root. There are some other situations where dots in names are rejected (two or more in a row, other than .. itself, IIRC?) because of backward compatibility. </div>
</div><div><br></div>-- <br><div dir="ltr"><div>brandon s allbery kf8nh sine nomine associates</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a> <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div>
<div>unix/linux, openafs, kerberos, infrastructure <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div></div><br>
</div>