- Python Home
- About
- News
- Documentation
- Downloads
- Community
- Foundation
- Developer's Guide
- Issue Tracker
- Issues
- Summaries
- User
- Administration
- Help
➜
This issue tracker has been migrated to GitHub,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| Author | bward |
|---|---|
| Recipients | bward |
| Date | 2018-12-14.21:16:21 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1544822182.17.0.788709270274.issue35503@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
|---|
I have python.org's Python27 installed on my laptop. In my Documnets/tmp folder/directory I created three "directories" (see below) and performed os.path.islink() on all three.
in cmd window: (not dir output and prompt have be been shortened)
*\Documents\tmp>dir
Volume in drive C is OS
Volume Serial Number is B2BB-F7DA
Directory of *\Documents\tmp
...
12/14/2018 12:37 PM <DIR> isDir
12/14/2018 12:37 PM <JUNCTION> isDirJunction [C:\Users\benjward\Documents\tmp\isDir]
12/14/2018 12:39 PM <SYMLINKD> isDirSymbolicLink [isDir]
...
*** using system installed python.org python 2.7
*\Documents\tmp>where python
C:\Python27\python.exe
python
Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.path.islink('isDir')
False
>>> os.path.islink('isDirJunction')
False
>>> os.path.islink('isDirSymlink')
False
>>>
*** but ..., using cygwin64 installation of python 2.7
*\Documents\tmp>C:\cygwin64\bin\python2.7
Python 2.7.14 (default, Oct 31 2017, 21:12:13)
[GCC 6.4.0] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.path.islink('isDir')
False
>>> os.path.islink('isDirJunction')
True
>>> os.path.islink('isDirSymlink')
True
>>>
The latter result is what I was expecting. Granted, my cygwin python is 2.7.14 and system installation is 2.7.15, but is it likely that a capability was lost? |
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2018-12-14 21:16:22 | bward | set | recipients: + bward |
| 2018-12-14 21:16:22 | bward | set | messageid: <1544822182.17.0.788709270274.issue35503@psf.upfronthosting.co.za> |
| 2018-12-14 21:16:22 | bward | link | issue35503 messages |
| 2018-12-14 21:16:21 | bward | create |
Powered by Roundup Copyright © 1990-2022, Python Software Foundation
Legal Statements
