Skip to content
Tcl Source Code Artifact [2edc0fe89c]
Login

Artifact [2edc0fe89c]

Artifact 2edc0fe89c0101894fe5a4959ecbfad18e9005fb:

Ticket change [2edc0fe89c] - New ticket [511658ffffffffff|511658ffff] <i>&#39;file attributes c:/&#39; returns &#39;hidden 1&#39;</i>. by vincentdarley on 2002-02-01 11:10:01.
D 2002-02-01T11:10:01
J assignee kennykb
J cmimetype text/plain
J comment (On\sWindows\s2000sp2)\n\n%\sfile\sattributes\sc:/\n-archive\s1\s-hidden\s1\s-longname\sC:/\s-readonly\s0\s-\nshortname\sC:/\s-system\s1\n%\sfile\sattributes\sD:/\n-archive\s1\s-hidden\s1\s-longname\sD:/\s-readonly\s0\s-\nshortname\sD:/\s-system\s1\n%\sfile\sattributes\sE:/\n-archive\s0\s-hidden\s0\s-longname\sE:/\s-readonly\s0\s-\nshortname\sE:/\s-system\s0\n%\sfile\sattributes\sc:/apps\n-archive\s0\s-hidden\s0\s-longname\sC:/Apps\s-readonly\s0\s-\nshortname\sC:/Apps\s-system\s0\n\nI\swould\sexpect\sall\sof\sthese\sto\sreturn\s'hidden\s0'.\n\nI\shave\s3\spartitions.\s'c:'\sand\s'd:'\sare\sNTFS\sand\s'e:'\s\nis\sa\sFAT32\spartition.\s\sIt\sseems\sas\sif\s'file\s\nattributes\s-hidden'\sreturns\sthe\swrong\svalue\sfor\sNTFS\s\npartitions\s(but\snot\sfor\sdirectories\ssuch\sas\s'c:/apps'\s\nwhich\sare\sin\sNTFS\spartitions).\n\nSome\squick\sdebugging\sshows\sthat:\n\n\s\s\sDWORD\sattr\s=\s(*tclWinProcs->getFileAttributesProc)\n(nativeName);\n\nreturns\s'attr\s=\s54',\swhere\s'nativeName'\sis\sthe\snative\s\nrepresentation\sof\s'c:/'.\n\nWhat\sis\sthe\sright\sway\sto\sfix\sthis?\s\sIt\sturns\sout\sthat\s\nthis\sis\salso\srelevant\sto\sfixing\sanother\sbug\s(which\sI'm\s\nworking\son\soffline),\sthat\sboth\s'glob\s-types\shidden\s\nc:/'\sand\s'glob\sc:/'\sreturn\sthe\ssame\sthing.\n\nA\sfix\sis\sneeded\son\sline\s1316\sof\stclWinFCmd.c\s(of\s\nlatest\scvs\shead).\s\sThe\sbug\sexists\sin\sTcl\s8.3\sas\swell\s\n(from\swhich\sthe\sabove\sresults\swere\staken).\n\n\n
J foundin obsolete:\s8.4a4
J priority 5\sMedium
J resolution None
J status Open
J submitter vincentdarley
J subsystem 37.\sFile\sSystem
J title 'file\sattributes\sc:/'\sreturns\s'hidden\s1'
J type Bug
K 511658ffffffffffffffffffffffffffffffffff
U vincentdarley
Z b962690d9a0274690bfe93cf51b462f6