# Package-level declarations

## Functions

csv
Link copied to clipboard

    .csv path:{String} \
         mode:{CsvParsingMode = CsvParsingMode.PLAIN} \
      caption:{InlineMarkdownContent? = null} \
          ref:{String? = null}
    -> Node

Content copied to clipboard

Loads a CSV file and returns its content as a display-ready table.

filename
Link copied to clipboard

    .filename path:{String} extension:{Boolean = true} -> String

Content copied to clipboard

Retrieves the name of a file located in path.

listfiles
Link copied to clipboard

    .listfiles path:{String} \
        directories:{Boolean = true} \
          recursive:{Boolean = false} \
            pattern:{String? = null} \
           fullpath:{Boolean = true} \
             sortby:{FileSorting = FileSorting.NONE} \
              order:{Ordering = Ordering.ASCENDING}
    -> Iterable<String>

Content copied to clipboard

Lists the files located in a directory.

pathtoroot
Link copied to clipboard

    .pathtoroot granularity:{RootGranularity = RootGranularity.PROJECT} -> String

Content copied to clipboard

Retrieves the relative path to the root of the file system. The root of the file system is determined by the working directory of either the project or the current subdocument, depending on the specified granularity.

read
Link copied to clipboard

    .read path:{String} lines:{Range = Range.INFINITE} -> String

Content copied to clipboard