Lines Matching refs:file
27 # In Mac OS X's VFS API file names are, by definition, canonically
126 # accepts it to create a file or a directory, or don't accept to enter to
156 Create an invalid file descriptor by opening and closing a file and return
159 file = open(TESTFN, "wb")
161 return file.fileno()
163 file.close()
214 # TESTFN & tempfile may use different file systems with
269 WASI SDK 15.0 cannot change file mode bits.
278 # bypass file read, write, and execute permission checks. The capability
343 # Note we are only testing for the existence of the file(s) in
376 file=sys.__stderr__)
535 """Create an empty file. If the file already exists, truncate it."""
542 """Open a file descriptor to a directory."""
555 """Detects if the file system for the specified directory
588 """Count the number of open file descriptors.
593 # Subtract one because listdir() internally opens a file
609 # on invalid file descriptor if Python is compiled in debug mode