def copyFile(source_segments, destination_segments, overwrite=False):
    """
        Copy file from `source_segments` to `destination_segments`.

        If `destination_segments` is a folder, the file will be copied at
        `destination_segments/SOURCE_FILENAME`.

        If `destination_segments` already exists and `overwrite` is not `true`,
        copy will fail.
        """
