hpcflow.sdk.core.command_files.FileNamePart#

class hpcflow.sdk.core.command_files.FileNamePart(*args, **kwargs)#

Bases: Protocol

A filename or piece of filename that can be expanded.

Methods

value

Get the part of the file, possibly with directory specified.

value(directory='.')#

Get the part of the file, possibly with directory specified. Implementations of this may ignore the directory. If a pattern, the expanded value may be a list of strings.

Parameters:

directory (str) –

Return type:

str | list[str]