2

I am trying to understand what the individual letters stand for in the os.access() method modes. The others are clear (Capitalized letter for clarity):

os.R_OK - checks for Readability

os.W_OK - checks for Writability

os.X_OK - checks for eXecutability

but what does the F stand for in os.F_OK? Existence doesn't have an 'F' in it.

4
  • E already means error. Dec 6, 2016 at 3:45
  • 1
    As a wild guess, F for Found/Findable?
    – Ken Y-N
    Dec 6, 2016 at 3:45
  • 1
    Another wild guess, F for File as in file access OK? Dec 6, 2016 at 3:51
  • It is almost definitely File
    – Qwerty
    Dec 6, 2016 at 4:00

1 Answer 1

4

from man page:

F_OK tests for the existence of the file.

may be F_OK for File existence OK.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.