250. SystemFilesCopy

Functionality for copying files from another systems

250.1. Summary of Module Globals

List of Global Functions

  • CopyFilesToSystem - Proceeds the copying of all files in inst-sys (that were copied from another partition before) to the directory.

  • CopyFilesToTemp - Mounts the partition and proceeds the copying files from that partition to the inst-sys.

  • CreateDirectoryIfMissing - Checks whether the directory exists and creates it if it is missing If the path exists but it is not a directory, it tries to create another directory and returns its name. 'nil' is returned when everythig fails.

List of Global Variables

    250.2. Global Functions

    250.2.1. CopyFilesToSystem

    Proceeds the copying of all files in inst-sys (that were copied from another partition before) to the directory.

    Return value

    • boolean

    250.2.2. CopyFilesToTemp

    Mounts the partition and proceeds the copying files from that partition to the inst-sys.

    Function parameters

    • string partition

    • list <string> filenames

    • string copy_to

    Return value

    • boolean

    copy_to   == "/root/" (where to copy it to the installed system)

    250.2.3. CreateDirectoryIfMissing

    Checks whether the directory exists and creates it if it is missing If the path exists but it is not a directory, it tries to create another directory and returns its name. 'nil' is returned when everythig fails.

    Function parameters

    • string create_directory

    Return value

    • string

    250.3. Global Variables

    250.4. Module Requirements

    250.4.1. Module Imports

    • Directory
    • FileUtils
    • Installation
    • String

    250.4.2. Module Includes