Expand description
This module contains the logic to link a give file from the package cache into the target directory.
See link_file for more information.
Structs§
- Linked
File - The successful result of calling
link_file.
Enums§
- File
Type - Represents the type of file detected from its content
- Link
File Error - Errors that can occur when calling
link_file. - Link
Method - Describes the method to “link” a file from the source directory (or the cache directory) to the destination directory.
Functions§
- copy_
and_ replace_ cstring_ placeholder - Given the contents of a file, copies it to the
destinationand in the process replace any binary c-style string that contains the textprefix_placeholderwith a binary compatible c-string where theprefix_placeholdertext is replaced with thetarget_prefixtext. - copy_
and_ replace_ placeholders - Given the contents of a file copy it to the
destinationand in the process replace theprefix_placeholdertext with thetarget_prefixtext. - copy_
and_ replace_ textual_ placeholder - Given the contents of a file copy it to the
destinationand in the process replace theprefix_placeholdertext with thetarget_prefixtext. - link_
file - Installs a single file from a
package_dirto the thetarget_dir. Replaces anyprefix_placeholderin the file with theprefix.