Python Forum
to follow or not to follow a symlink in os.utime() os POSIX
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
to follow or not to follow a symlink in os.utime() os POSIX
#2
(Sep-03-2023, 05:34 PM)Skaperen Wrote: what is meant by "using"? trying to access it as an attribute?
They mean that some functions in the os module have a follow_symlinks= keyword argument in their parameter list, for example the
os.stat()
function has such a parameter.

On my system, I have
>>> import os
>>> os.stat in os.supports_follow_symlinks
True
It means that I can use the follow_symlinks argument and call e.g.
os.stat(..., follow_symlinks=False)
On other systems, one cannot set this argument to False.
Reply


Messages In This Thread
RE: to follow or not to follow a symlink in os.utime() os POSIX - by Gribouillis - Sep-03-2023, 06:28 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  bluestacks instagram follow bot countingclub 2 2,564 May-03-2021, 05:03 AM
Last Post: countingclub

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020