On Tue, Nov 08, 2022 at 09:55:04PM +0000, Barry wrote: > But anyone that is suitably motivated can implement this.
This is true for every function in a Turing Complete language. Perhaps we should start using iota or jot? :-) https://en.wikipedia.org/wiki/Iota_and_Jot A "suitably motivated" person could implement ismount, islink, the entire os and Pathlib modules, and more. But they probably won't do as good a job of it as what we have. On systems that support junction points, they are as much a fundamental file system object as symlinks, directories and mount points. Non-experts will probably have to google for hints how to implement this, and the internet is full of bad advice. On Stackoverflow, I find this question: https://stackoverflow.com/questions/17174703/symlinks-on-windows which starts off by giving the false information (or at least obsolete) that Windows doesn't support symlinks only shortcuts (NTFS has supported symlinks since at least Windows Vista, in 2006), and then later gives a solution for detecting junction points which requires ctypes. Most Python coders are using Windows. Surely it is time to do better for them than "just roll your own"? -- Steve _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/VLUZSVAS6TJVRTQNRGHZJ7AQIVFEMGIS/ Code of Conduct: http://python.org/psf/codeofconduct/