Package winappdbg :: Module system :: Class PathOperations
[hide private]
[frames] | no frames]

Class PathOperations

source code


Static methods for filename and pathname manipulation.

Instance Methods [hide private]

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
str
pathname_to_filename(pathname)
Returns: Relative path.
source code
str
filename_to_pathname(filename)
Returns: Absolute path.
source code
bool
path_is_relative(path)
Returns: True if the path is relative, False if it's absolute.
source code
bool
path_is_absolute(path)
Returns: True if the path is absolute, False if it's relative.
source code
tuple( str, str )
split_extension(pathname)
Returns: Tuple containing the file and extension components of the filename.
source code
tuple( str, str )
split_filename(pathname)
Returns: Tuple containing the path to the file and the base filename.
source code
list( str... )
split_path(path)
Returns: List of path components.
source code
str
join_path(*components)
Returns: Absolute or relative path.
source code
str
native_to_win32_pathname(name)
Returns: Win32 absolute pathname.
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

pathname_to_filename(pathname)
Static Method

source code 
Parameters:
  • pathname (str) - Absolute path.
Returns: str
Relative path.

filename_to_pathname(filename)
Static Method

source code 
Parameters:
  • filename (str) - Relative path.
Returns: str
Absolute path.

path_is_relative(path)
Static Method

source code 
Parameters:
  • path (str) - Absolute or relative path.
Returns: bool
True if the path is relative, False if it's absolute.

See Also: path_is_absolute

path_is_absolute(path)
Static Method

source code 
Parameters:
  • path (str) - Absolute or relative path.
Returns: bool
True if the path is absolute, False if it's relative.

See Also: path_is_relative

split_extension(pathname)
Static Method

source code 
Parameters:
  • pathname (str) - Absolute path.
Returns: tuple( str, str )
Tuple containing the file and extension components of the filename.

split_filename(pathname)
Static Method

source code 
Parameters:
  • pathname (str) - Absolute path.
Returns: tuple( str, str )
Tuple containing the path to the file and the base filename.

split_path(path)
Static Method

source code 
Parameters:
  • path (str) - Absolute or relative path.
Returns: list( str... )
List of path components.

See Also: join_path

join_path(*components)
Static Method

source code 
Parameters:
  • components (tuple( str... )) - Path components.
Returns: str
Absolute or relative path.

See Also: split_path

native_to_win32_pathname(name)
Static Method

source code 
Parameters:
  • name (str) - Native (NT) absolute pathname.
Returns: str
Win32 absolute pathname.