Difference between revisions of "Os.path"

From wikieduonline
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
  os.path.basename
 
  os.path.basename
 
  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 ==
Line 11: Line 16:
  
 
== See also ==
 
== See also ==
 +
* {{os}}
 +
* {{import}}
 
* {{Python}}
 
* {{Python}}
  
 
[[Category:Python]]
 
[[Category:Python]]

Latest revision as of 19:53, 26 March 2024

Advertising: