Table of Contents

Class: FileLabel qm/test/classes/file_label.py

A FileLabel is a Label that uses the filesystem's naming scheme.

A FileLabel is a Label whose separator character is the operating system's file system separator character (typically / or \). These labels are not system-independent; there is no guarantee that 'FileLabel's will have the same meaning on different operating systems.

Base Classes   
Label
Methods   
Basename
Dirname
Join
Split
  Basename 
Basename ( self )

Return the basename for the label.

returns
A string giving the basename for the label. The value returned for l.basename() is always the same as 'l.split()[1]'.
  Dirname 
Dirname ( self )

Return the directory name for the label.

returns
A string giving the directory name for the label. The value returned for l.dirname() is always the same as 'l.split()[0]'.
  Join 
Join ( self,  *labels )

Combine this label and the labels into a single label.

labels
A sequence of strings giving the components of the new label. All but the last are taken as directory names; the last is treated as a basename.
  Split 
Split ( self )

Split the label into a pair (directory, basename).

returns
A pair (directory, basename), each of which is a label.

It is always true that directory.join(basename) will return a label equivalent to the original label.


Table of Contents

This document was automatically generated on Mon Jan 3 09:42:29 2005 by HappyDoc version 2.1