Difference between revisions of "Os.path"

From wikieduonline
Jump to navigation Jump to search
(Created page with "{{lowercase}} == See also == * {{Python}} Category:Python")
 
 
(5 intermediate revisions by the same user not shown)
Line 2: Line 2:
  
  
 +
[[os]].path.dirname
 +
os.path.basename
 +
os.path.realpath
 +
[[os.path.isfile]]
 +
 +
 +
 +
if not os.path.isfile(file1) or not os.path.isfile(file2):
 +
    [[raise]] FileNotFoundError("One or both files are missing.")
 +
 +
== Related ==
 +
* <code>[[Pathlib]]</code>
  
 
== See also ==
 
== See also ==
 +
* {{os}}
 +
* {{import}}
 
* {{Python}}
 
* {{Python}}
  
 
[[Category:Python]]
 
[[Category:Python]]

Latest revision as of 19:53, 26 March 2024

Advertising: