PyMaterialXFormat.FilePath

class FilePath

Bases: pybind11_object

A generic file path, supporting both syntactic and file system operations.

See:

https://materialx.org/docs/api/class_file_path.html

Methods

__init__(*args, **kwargs)

Overloaded function.

addExtension(self, arg0)

asString(self, format)

createDirectory(self)

exists(self)

getBaseName(self)

getCurrentPath()

getExtension(self)

getFilesInDirectory(self, arg0)

getModulePath()

getNormalized(self)

getParentPath(self)

getSubDirectories(self)

isAbsolute(self)

isDirectory(self)

isEmpty(self)

removeExtension(self)

size(self)

Methods

__init__(*args, **kwargs)

Overloaded function.

  1. __init__(self: PyMaterialXFormat.FilePath) -> None

  2. __init__(self: PyMaterialXFormat.FilePath, arg0: str) -> None

addExtension(self: FilePath, arg0: str) None
asString(self: FilePath, format: Format = <Format.FormatPosix: 1>) str
createDirectory(self: FilePath) None
exists(self: FilePath) bool
getBaseName(self: FilePath) str
static getCurrentPath() FilePath
getExtension(self: FilePath) str
getFilesInDirectory(self: FilePath, arg0: str) list[FilePath]
static getModulePath() FilePath
getNormalized(self: FilePath) FilePath
getParentPath(self: FilePath) FilePath
getSubDirectories(self: FilePath) list[FilePath]
isAbsolute(self: FilePath) bool
isDirectory(self: FilePath) bool
isEmpty(self: FilePath) bool
removeExtension(self: FilePath) None
size(self: FilePath) int