PacletTools`
PacletTools`

PacletExtensionFiles

PacletExtensionFiles[paclet]

returns an Association relating each extension of paclet to a set of files.

PacletExtensionFiles[paclet, type]

returns an Association relating each extension of paclet that matches type to a set of files.

Details and Options

  • paclet must be a file path to a paclet directory in the local file system, or a PacletObject.
  • PacletExtensionFiles has the following options:
  • "SystemID"$SystemIDSystem ID compatibility used to filter extensions
    LanguageAllLanguage used to filter extensions
  • The "SystemID" and Language options are used to filter the extensions declared by the paclet.
  • The "SystemID" option expects values that are valid $SystemID values.
  • PacletExtensionFiles returns extensions in the form {name, <| options |>}, which differs from how they are typically declared in a PacletInfo.wl file.
  • PacletExtensionFiles uses PacletExtensions to get and filter the paclet extensions.
  • If PacletExtensionFiles encounters an unknown extension type, and a directory with the same name as the extension exists, all files in that directory will be returned. If no such directory exists, Missing["NotAvailable"] will be returned.

Examples

open allclose all

Basic Examples  (3)

Begin by ensuring PacletTools` is loaded:

List files associated with all extensions of a paclet:

List files associated with "Kernel" extensions:

Options  (1)

"Relative"  (1)

Get file paths which are relative to the paclet root directory:

Applications  (1)

Get all Wolfram Language source files from a paclet  (1)

Wolfram Research (2021), PacletExtensionFiles, Wolfram Language function, https://reference.wolfram.com/language/PacletTools/ref/PacletExtensionFiles.html.

Text

Wolfram Research (2021), PacletExtensionFiles, Wolfram Language function, https://reference.wolfram.com/language/PacletTools/ref/PacletExtensionFiles.html.

CMS

Wolfram Language. 2021. "PacletExtensionFiles." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/PacletTools/ref/PacletExtensionFiles.html.

APA

Wolfram Language. (2021). PacletExtensionFiles. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/PacletTools/ref/PacletExtensionFiles.html

BibTeX

@misc{reference.wolfram_2024_pacletextensionfiles, author="Wolfram Research", title="{PacletExtensionFiles}", year="2021", howpublished="\url{https://reference.wolfram.com/language/PacletTools/ref/PacletExtensionFiles.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_pacletextensionfiles, organization={Wolfram Research}, title={PacletExtensionFiles}, year={2021}, url={https://reference.wolfram.com/language/PacletTools/ref/PacletExtensionFiles.html}, note=[Accessed: 22-November-2024 ]}