Difference between revisions of "Os.path"

From wikieduonline
Jump to navigation Jump to search
 
Line 6: Line 6:
 
  os.path.realpath
 
  os.path.realpath
 
  [[os.path.isfile]]
 
  [[os.path.isfile]]
 +
 +
 +
 +
if not os.path.isfile(file1) or not os.path.isfile(file2):
 +
    [[raise]] FileNotFoundError("One or both files are missing.")
  
 
== Related ==
 
== Related ==

Latest revision as of 19:53, 26 March 2024

Advertising: