<i>TclFSNormalizeToUniquePath - incomplete?</i> status still Open with 4 other changes
by
.
D 2004-04-09T16:31:26
J icomment Logged\sIn:\sYES\s\nuser_id=32170\n\nOne\srelevant\sissue\sis\sthat\sTFSNToUniquePath\swill\sonly\swant\nto\scall\sPathInFilesystem()\sfor\spaths\sthat\sit\sknows\sare\nnormalized\sup\sto\sa\scertain\spoint,\s(and\sonly\swants\sto\sknow\sif\nthe\spath\sup\sto\sthat\spoint\sis\sin\sthe\sgiven\sfs).\s\sI.e.\sin\smy\nexample\sbelow,\swe'll\swant\sto\scall\nPathInFilesystem(C:/foo/bar.zip/),\sand\swe\sknow\sthat\sthat\npath\sis\salready\snormalized,\swhich\smeans\swe\scan\suse\n'TclFSMakePathFromNormalized'\s\s\s-(we\sdon't\sactually\swant\sthe\ntrailing\s'/',\sbut\sthat's\sa\sdetail).\n\nThis\smeans\sthat\swe\swill\sactually\swant\sto\sconstruct\sa\snew\s(!)\npathPtr\scontaining\sjust\sthis\spath,\swhich\swe\sactually\screate\nin\sthe\s'pure-normalized'\sform.\s\sUnfortunately,\sthe\smoment\sit\nhas\sbeen\srecognized,\swe\sthrow\sit\saway.\s\sThis\smeans\sin\syour\narbitrarily\snested\sfilesystem,\snormalization\swill\sbe\sa\nnot-stunningly\sefficient\sprocess\s(but\sperhaps\sthat\sdoesn't\nmatter\stoo\smuch).\n\nThis\ssuggests\sin\sthe\sfuture\swe\smight\swant\sto\sextend\sthe\sFS\ninterface\sto\sprovide\sa\smore\sflexible\spathInFilesystem\sproc\n(Note:\swe\shave\sa\sprivate\sFS_VERSION_2\swe\scan\splay\swith\shere).\n\nFinally,\sconcerning\sthe\soverlap\sbetween\sthe\sAbsolute/Unique\nroutines,\syes\sthat\sis\san\sissue.\s\sI\sshould\sclarify\sthat\sthe\nAbsolute\sroutine\sis\sthere\s_not_\sto\sremove\ssymlinks,\sbut\nrather\sto\sremove\s'./'\sand\s'../'\ssequences\s(and\sthis\smay\nresult\sin\sremoving\s_some_\ssymlinks,\sif\sthey\sare\sbefore\sa\n'../'\ssequence).\n\nGiven\syour\sdesire\sto\sgo\sdown\sthe\spath\sof\sarbitrarily\nnestable/symlinkable\sfilesystems,\sI\sthink\sa\sresult\sof\sthat\nis\swe\swill\shave\sto\srefactor\sthe\stwo\sfunctions\s--\ssince,\sin\nparticular,\s'../'\ssequences\scan\sbe\sre-introduced.\n\np.s.\sI'm\slargely\saway\sfor\sthe\snext\sweek.\n\n\n\n
J login vincentdarley
J mimetype text/plain
J username vincentdarley
K 931847ffffffffffffffffffffffffffffffffff
U vincentdarley
Z bc0100f540c2979f0dd2a2f35064ae80