Message333098
| Author | martin.panter |
|---|---|
| Recipients | antonymayi, drpotato, jcea, lars.gustaebel, martin.panter, serhiy.storchaka, vajrasky, vstinner |
| Date | 2019-01-06.09:44:05 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1546767845.18.0.258563397417.issue19974@roundup.psfhosted.org> |
| In-reply-to |
| Content | |
|---|---|
About “lexists”, I meant using it instead of “os.path.exits” (not “islink”). On Linux:
>>> targetpath = 'target'
>>> os.symlink('nonexistant', dst=targetpath) # Make a broken symlink
>>> os.system('ls -l')
total 0
lrwxrwxrwx 1 vadmium vadmium 11 Jan 6 09:28 target -> nonexistant
0
>>> os.path.exists(targetpath) # Doesn't register broken symlinks
False
>>> os.path.lexists(targetpath) # Does register it
True
Did you try extracting a tar file over a broken link? (I haven’t tried your code; I’m just going on theory.) |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2019-01-06 09:44:07 | martin.panter | set | recipients: + martin.panter, jcea, lars.gustaebel, vstinner, serhiy.storchaka, vajrasky, antonymayi, drpotato |
| 2019-01-06 09:44:05 | martin.panter | set | messageid: <1546767845.18.0.258563397417.issue19974@roundup.psfhosted.org> |
| 2019-01-06 09:44:05 | martin.panter | link | issue19974 messages |
| 2019-01-06 09:44:05 | martin.panter | create | |