Orbits  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
Functions | Variables
genericpath Namespace Reference

Functions

def exists
 
def isfile
 
def isdir
 
def getsize
 
def getmtime
 
def getatime
 
def getctime
 
def commonprefix
 
def _splitext
 

Variables

list __all__
 

Detailed Description

Path operations common to more than one OS
Do not use directly.  The OS specific modules import the appropriate
functions from this module themselves.

Function Documentation

def genericpath._splitext (   p,
  sep,
  altsep,
  extsep 
)
private
Split the extension from a pathname.

Extension is everything from the last dot to the end, ignoring
leading dots.  Returns "(root, ext)"; ext may be empty.
def genericpath.commonprefix (   m)
def genericpath.exists (   path)
Test whether a path exists.  Returns False for broken symbolic links
def genericpath.getatime (   filename)
Return the last access time of a file, reported by os.stat().
def genericpath.getctime (   filename)
Return the metadata change time of a file, reported by os.stat().
def genericpath.getmtime (   filename)
Return the last modification time of a file, reported by os.stat().
def genericpath.getsize (   filename)
Return the size of a file, reported by os.stat().
def genericpath.isdir (   s)
Return true if the pathname refers to an existing directory.
def genericpath.isfile (   path)
Test whether a path is a regular file

Variable Documentation

list genericpath.__all__
Initial value:
1 = ['commonprefix', 'exists', 'getatime', 'getctime', 'getmtime',
2  'getsize', 'isdir', 'isfile']

Copyright 2014 Google Inc. All rights reserved.