D 2023-09-09T13:30:31.230
J icomment Interestingly\swhile\sopen/read/stat\setc\sdon't\swork\s\sfile\sattributes\sdoes.\r\n\r\n\s\s\s\sP%\sfile\sattributes\s$f\r\n\s\s\s\s-\s\s-longname\s{NEXT\sSAT.\s2_15_\sFADED\sLOVERS\sTOUR\sin\sPROVIDENCE!\s💕💞💕.eml}\s-shortname\sNEXTSA~1.EML\r\n\s\s\s\sP%\sfile\sexists\sNEXTSA~1.EML\r\n\s\s\s\s-\s\s1\r\n\r\nYou\salso\scan't\sglob\sfor\san\sexact\smatch:\sglob\s$f\r\nDos\sdevice\spathnames\sdon't\shelp\seither:\r\n\s\s\s\sP%\sfile\sexists\s//?/[pwd]/$f\r\n\s\s\s\s-\s\s0\r\n\r\n(note\sa\sfull\spath\sis\srequired\sfor\sthe\s//?/\ssyntax)\r\n\r\nEverything\sworks\sfine\sif\syou\suse\sthe\sshortname\s-\sbut\sit\sseems\sif\sthat's\sthe\scase\smaybe\sthe\swindows\sfile\scode\sshould\sautomatically\stry\sthe\sshortname\sin\sthese\scases.\r\n\r\nThis\sis\sclose,\sbut\s*slightly*\sdifferent\sto\sthe\sbehaviour\syou\sget\swhen\susing\swhat\sis\sconsidered\san\sillegal\spath\sin\swindows.\se.g\sa\sfilename\sending\sin\s.\sor\sa\sspace.\r\n\r\nThese\sones\sdo\swork\ssimply\sby\susing\sthe\s//?/\ssyntax\s-\sbut..\sfile\sattributes\sdoesn't\sreturn\sthe\sshortname\sinfo.\r\n\r\n\s\s\s\sP%\sfile\sexists\s[pwd]/testetc123aaa.\r\n\s\s\s\s-\s\s0\r\n\s\s\s\sP%\sfile\sexists\s//?/[pwd]/testetc123aaa.\r\n\s\s\s\s-\s\s1\r\n\s\s\s\sP%\sfile\sattributes\s[pwd]/testetc123aaa.\r\n\s\s\s\scould\snot\sread\s"C:/test/testetc123aaa.":\sno\ssuch\sfile\sor\sdirectory\r\n\s\s\s\sp%\sfile\sattributes\s//?/[pwd]/testetc123aaa.\r\n\s\s\s\s-\s\s-archive\s1\s-hidden\s0\s-readonly\s0\s-system\s0\r\n\r\nExact\sglobs\sfor\strailing\sdot/space\sfiles\salso\sdoesn't\swork.\r\n\r\nIt's\sobviously\smore\simportant\sthat\sthe\semoji\snames\swork\sthan\strailing\sdots\sor\sspaces\swhich\sis\sa\sseparate\sissue\s-\sI\sjust\sthought\sthe\scomparison\swith\sthe\s//?/\sworkaround\snot\sworking\swas\sinteresting.
J login juliannoble2
J mimetype text/plain
K 43b065660532eb4a3678e70e9d68daf1b09810ac
U juliannoble2
Z 566d1134b3b8cef1668dcc8bb5d3b229