Skip to content
Tcl Source Code Artifact [61a8cca17a]
Login

Artifact [61a8cca17a]

Artifact 61a8cca17abf9acafc63b5d94fd7272b946b93dd:

Ticket change [61a8cca17a] - Ticket [971976ffffffffff|971976ffff] <i>Inconsistent naming in [file exists]</i> status still Open with 4 other changes by coldstore on 2004-07-05 20:26:46.
D 2004-07-05T20:26:46
J icomment Logged\sIn:\sYES\s\nuser_id=19214\n\nA\shopefully\sclarifying\sstatement:\s'/'\sis\sa\spath\selement\nseparator,\snot\sa\spath\selement\sterminator.\n\nIt\sfollows,\sthen,\sthat\sa\spath\sx/\sis\sa\spath\swhich\sconsists\sof\nx\sfollowed\sby\snothing.\s\sIf\sx\sis\sa\sdirectory,\sthen\sx/\sexists.\n\sIf\sx\sis\sa\sfile,\sthen\sx/\scan't\sexist,\snor\scan\sx/.\sor\sany\nother\ssimilar\spath.\n\n(i)\sWhat\sdoes\s'file\snormalize\swikit.vfs'\sdo\swhen\sthe\sfile\ndoesn't\sexist\sbut\sthe\sdirectory\sdoes?\s\sIs\sa\s'/'\sadded?\nRemember\sthat\sthe\sdefinition\sof\sa\snormalized\spath\sis\sthe\n_unique_\srepresentation.\n\nI\sdon't\sthink\sit\swould\sadd\sa\strailing\s'/',\sthe\sunique\nrepresentation\sis\spresumably\s.../wikit.vfs.\s\swikit.vfs/\sis\nan\salias\sfor\sthe\sfile's\sname\siff\sit\sis\sa\sdirectory.\n\n(ii)\sWhat\sdoes\sit\sdo\swhen\s(with\sa\svfs)\sin\ssome\ssense\sboth\sexist?\n\nThat's\san\sinteresting\squestion.\s\sI\ssuggest\sthat\sthe\ndifference\sbetween\sa\svfs\sdirectory\swhich\sis\salso\sa\sfile\sis\npurely\sthat\sit\scan\sbe\s[open]ed\sand\sread,\swritten,\setc.\s\sDoes\nthe\s'file/dir'\sfred/\sexist?\s\sYes,\sif\sthere\sis\sa\sdirectory,\nbecause\sfred/\sfred//\sfred/../fred\sfred/.\sare\sall\ssynonyms,\sI\nthink.\n\n(iii)\sWhat\sdoes\s'file\snormalize\swiki.vfs//////'\sdo\swith\syour\npatch?\n\nSeems\sto\sreduce\sit\sto\swiki.vfs,\swhich\sseems\sright.\n\n(iv)\sThe\spatch\sneeds\sto\sadd\slots\sof\stests\sfor\sthe\snew\sbehaviour:\n\nglob\s-dir\sfoo/\s*\nglob\s-path\sfoo/\s*\nfile\sisdir\sfoo\nfile\sisdir\sfoo/\netc.\n\n(v)\sWhat\sdoes\s'file\sisdir\sfoo'\sreturn,\swhen\sthe\sdirectory\n'foo/'\sexists?\n\nThe\sdirectory\s'foo/'\sor\sthe\sdirectory\s'foo\\/'\s?\n\n(vi)\sWhat\sdoes\s'file\sdirname\sfoo/bar'\sreturn?\s\sJust\s'foo'\sor\n'foo/'?\n\nIt\sshould\sreturn\s'foo',\sas\sit\sdoes\snow,\sIMO.\n\n
J login coldstore
J mimetype text/plain
J username coldstore
K 971976ffffffffffffffffffffffffffffffffff
U coldstore
Z 7e7b6ecf048be9b614dcab64e1b2abc4