Which is the preferred way to check if a file exists and if not create it?
Answer
To check if a path is an existing file:
Return
Trueif path is an existing
regular file. This follows symbolic
links, so bothislink()and
isfile()can be true for the same
path.
No comments:
Post a Comment