Skip to content

Stats

Module defining the LogseqPath class, which is used to gather file statistics for Logseq files.

Classes:

Name Description
LogseqFileName

LogseqFileName class.

LogseqPath

LogseqPath class.

LogseqFileName() dataclass

LogseqFileName class.

Methods:

Name Description
configure

Configure the LogseqPath class with necessary settings.

process

Process the Logseq filename based on its parent directory.

process_journal_key

Process the journal key to create a page title.

process_non_journal_key

Process non-journal keys to create a page title.

configure(analyzer_dirs: LogseqAnalyzerDirs, journal_formats: JournalFormats, config_edns: ConfigEdns) -> None classmethod

Configure the LogseqPath class with necessary settings.

process(file: Path) -> str staticmethod

Process the Logseq filename based on its parent directory.

process_journal_key(name: str) -> str staticmethod

Process the journal key to create a page title.

process_non_journal_key(name: str, ns_file_sep: str, ns_sep: str = Core.NS_SEP) -> str staticmethod

Process non-journal keys to create a page title.

LogseqPath(file: Path, file_type: str = '', logseq_url: str = '', name: str = '', uri: str = '') dataclass

LogseqPath class.

Methods:

Name Description
__post_init__

Initialize the LogseqPath object.

configure

Configure the LogseqPath class with necessary settings.

process

Process the Logseq file path to gather statistics.

evaluate_file_type

Determine the file type based on the directory structure.

set_logseq_url

Set the Logseq URL.

read_text

Read the text content of a file.

get_timestamp_info

Get the timestamps for the file.

get_size_info

Get the size information for the file.

get_namespace_info

Get the namespace name data.

__post_init__() -> None

Initialize the LogseqPath object.

configure(analyzer_dirs: LogseqAnalyzerDirs) -> None classmethod

Configure the LogseqPath class with necessary settings.

process() -> None

Process the Logseq file path to gather statistics.

evaluate_file_type() -> str

Determine the file type based on the directory structure.

set_logseq_url() -> str

Set the Logseq URL.

read_text() -> str

Read the text content of a file.

get_timestamp_info() -> TimestampInfo

Get the timestamps for the file.

get_size_info() -> SizeInfo

Get the size information for the file.

get_namespace_info() -> NamespaceInfo

Get the namespace name data.