240. SystemFilesCopy

Functionality for copying files from another systems

240.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

    240.2. Global Functions

    240.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

    240.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)

    240.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

    240.3. Global Variables

    240.4. Module Requirements

    240.4.1. Module Imports

    • Directory
    • FileUtils
    • Installation
    • String

    240.4.2. Module Includes