|
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.
|
#include <time.h>#include "typedefs.h"#include "linked_list.h"#include "grassroots_util_library.h"Go to the source code of this file.
Data Structures | |
| struct | FileInformation |
| A datatype to hold a collection of metadata about a file. More... | |
Functions | |
| char * | GetFilenameOnly (const char *const full_path_to_file_s) |
| Get the filename only from a given path. More... | |
| char * | GetPathOnly (const char *const full_path_to_file_s) |
| Get the path to the parent directory only from a given path. More... | |
| char * | MakeFilename (const char *const path_s, const char *const filename_s) |
| Construct a filename. More... | |
| bool | DeterminePathAndFile (const char *const full_path_s, char **const path_ss, char **const filename_ss) |
| Extract the parent path and filename only from a given path. More... | |
| char * | SetFileExtension (const char *const filename_s, const char *const extension_s, bool replace_flag) |
| Generate a new filename by adding an extension to a filename. More... | |
| void | UsePlatformFileSeparator (char *value_s) |
| Replace any occurrences of // in a string with the platform-specific file separator. More... | |
| bool | IsPathValid (const char *const path_s) |
| Check whether a given file/directory exists. More... | |
| bool | IsPathAbsolute (const char *const path_s) |
| Check whether a given path is absolute. More... | |
| LinkedList * | GetMatchingFiles (const char *const pattern_s, const bool full_path_flag) |
| Get files that match a given pattern. More... | |
| char | GetFileSeparatorChar (void) |
| Get the platform-specific file separator. More... | |
| const char * | GetCurrentDirectoryString (void) |
| Get the platform-specific string for the current directory. More... | |
| const char * | GetParentDirectory (void) |
| Get the platform-specific string for the parent directory. More... | |
| const char * | GetPluginPattern (void) |
| Get the platform-specific string for the a plugin. More... | |
| bool | EnsureDirectoryExists (const char *const path_s) |
| Makes sure that a given directory path exists. More... | |
| bool | CopyToNewFile (const char *const src_filename_s, const char *const dest_filename_s, void(*callback_fn)(void)) |
| Copy the content of one file to another. More... | |
| bool | SetCurrentWorkingDirectory (const char *const path_s) |
| Set the current working directory. More... | |
| char * | GetCurrentWorkingDirectory (void) |
| Get the current working directory. More... | |
| char * | GetHomeDirectory (void) |
| Get the current user's home directory. More... | |
| bool | IsDirectory (const char *const path_s) |
| Check whether the given path refers to a directory. More... | |
| bool | RemoveFile (const char *const path_s) |
| Delete a file. More... | |
| bool | DoesFileExist (const char *const path_s) |
| Check if a file/directory exists. More... | |