Functions for manipulating uploaded results

Share:

Description

Functions used for moving and creating the past_results data set from uploaded data. The move_files function is used to moved files from the server to another location, whilst removing any empty data sets.

Usage

1
2
3
make_data_set(from)

move_files(from, to)

Arguments

from

A directory containing the uploaded results.

to

Destination directory

Note

One of the unit tests uploads an empty results file. Files where the results are NULL are moved to a sub-directory (called) empty in the to directory. If the empty directory doesn't exist, it is created.

Currently these functions are specfic to my set-up.