|
Grassroots Infrastructure
The Grassroots Infrastructure is a suite of computing tools to help users and developers use scientific data infrastructure that can easily be interconnected.
|
A datatype to hold a collection of metadata about a file. More...
#include <filesystem_utils.h>
Public Member Functions | |
| void | InitFileInformation (FileInformation *info_p) |
| Initialise a FileInformation ready for use. More... | |
| bool | CalculateFileInformation (const char *const path_s, FileInformation *info_p) |
| Calculate the FileInformation for a given filename. More... | |
Data Fields | |
| time_t | fi_last_modified |
| The timestamp of the last modification to a file. More... | |
| size_t | fi_size |
| The size of the file in bytes. More... | |
A datatype to hold a collection of metadata about a file.
| bool CalculateFileInformation | ( | const char *const | path_s, |
| FileInformation * | info_p | ||
| ) |
Calculate the FileInformation for a given filename.
| path_s | The path to the file/directory to get the information for. |
| info_p | Where the FileInformation will be stored. |
true if the information was calculated successfully, false otherwise. | time_t fi_last_modified |
The timestamp of the last modification to a file.
| size_t fi_size |
The size of the file in bytes.