G
Giampaolo Rodola'
Hi there.
In a code of mine I'd like to use os.lstat whenever possible.
My only concern is if it's available on all platforms.
It could be safe using always os.lstat instead of:
try:
os.lstat
except AttributeError:
os.stat
....?
As far as I know where symlinks are not supported os.lstat should be
an alias for os.stat but I'm not 100% sure.
In a code of mine I'd like to use os.lstat whenever possible.
My only concern is if it's available on all platforms.
It could be safe using always os.lstat instead of:
try:
os.lstat
except AttributeError:
os.stat
....?
As far as I know where symlinks are not supported os.lstat should be
an alias for os.stat but I'm not 100% sure.