|
Robotran C Documentation
|
Go to the documentation of this file.
138 int mbs_splitext(
const char* path,
char **root,
char **ext);
char * find_user_path(const char *mbsfile)
Find the user folder corresponding to the given *.mbs file.
Definition: mbs_path.c:49
int mbs_unix_separator(char *path)
In-place replacement of windows-style path separator (\) by Unix separator (/).
Definition: mbs_path.c:34
int mbs_splitext(const char *path, char **root, char **ext)
Split the path into a pair (root, ext).
Definition: mbs_path.c:460
#define MBS_INFO_FAILURE
Definition: mbs_define.h:31
void mbs_msg(const char *msg,...)
Send a message.
Definition: mbs_message.c:87
char * get_char_cpy(const char *fmt,...)
Copy the provided formatted string into a newly allocated memory.
Definition: useful_functions.c:196
char * mbs_dirname(const char *path, int verbose)
mbs_dirname returns the leading part of the path (UNIX and MAC).
Definition: mbs_path.c:407
#define _MBS_ERR_LOW_FILES
Low Level error number Error during opening/writing files = -9.
Definition: mbs_errors_names.h:157
char * mbs_getcwd()
Return the Current Working Directory (cwd).
Definition: mbs_path.c:131
int mbs_strcmp(const char *__s1, const char *__s2)
Compare two char with strcmp.
Definition: useful_functions.c:388
int mbs_splitext(const char *path, char **prefix, char **extension)
Split the path into a pair (root, ext).
Definition: mbs_path.c:460
char * explore_dir_for_project_path(const char *optionnal_path, int verbose)
Find the project directory from current working directory (cwd) or provided path.
Definition: mbs_path.c:235
char * mbs_dirname(const char *path, int verbose)
mbs_dirname returns the leading part of the path (UNIX and MAC).
Definition: mbs_path.c:407
#define S_ISREG(m)
Definition: mbs_path.c:28
char * find_project_path_from_cwd(const char *optionnal_path, int verbose)
Find the project directory from current working directory (cwd) or provided path.
Definition: mbs_path.c:157
#define ERR_PRE
Definition: mbs_path.c:32
char * mbs_getcwd()
Return the Current Working Directory (cwd).
Definition: mbs_path.c:131
void mbs_msg_v(int v_opt, int v_lvl, const char *msg,...)
Send a message only of the message level is lower than the verbosity option.
Definition: mbs_message.c:143
char * explore_dir_for_project_path(const char *optionnal_path, int verbose)
Find the project directory from current working directory (cwd) or provided path.
Definition: mbs_path.c:235
int remove_prjpath(char **path, char *project_source_dir)
If the path start with PRJPATH, an new path is allocated replacing it.
Definition: mbs_path.c:524
char * mbs_basename(const char *path, int verbose)
mbs_basename returns the trailing part of the path (UNIX and MAC).
Definition: mbs_path.c:359
#define MBS_VERBOSE_ERROR
Definition: mbs_define.h:44
int find_project_path(const char *mbsfile, char *prjpath)
Find the project directory (containing dataR, symbolicR, ...) from Mbs filepath.
Definition: mbs_path.c:74
int mbs_unix_separator(char *path)
In-place replacement of windows-style path separator (\) by Unix separator (/).
Definition: mbs_path.c:34
#define ERR_MSG
Definition: mbs_path.c:31
int mbs_makedirs(char *path)
Create (recursively) the specified directory.
Definition: mbs_path.c:586
#define MBS_VERBOSE_WARNING
Definition: mbs_define.h:45
int mbs_is_dir_or_file(const char *path)
Check if the path is valid and lead to a file or directory.
Definition: mbs_path.c:547
char * find_user_path(const char *mbsfile)
Find the user folder corresponding to the given *.mbs file.
Definition: mbs_path.c:49
char * mbs_basename(const char *path, int verbose)
mbs_basename returns the trailing part of the path (UNIX and MAC).
Definition: mbs_path.c:359
char * find_project_path_from_cwd(const char *optionnal_path, int verbose)
Find the project directory from current working directory (cwd) or provided path.
Definition: mbs_path.c:157
#define MBS_INFO_SUCCESS
Definition: mbs_define.h:29
int mbs_makedirs(char *path)
Create (recursively) the specified directory.
Definition: mbs_path.c:586
int remove_prjpath(char **path, char *project_source_dir)
If the path start with PRJPATH, an new path is allocated replacing it.
Definition: mbs_path.c:524
#define S_ISDIR(m)
Definition: mbs_path.c:25
int mbs_is_dir_or_file(const char *path)
Check if the path is valid and lead to a file or directory.
Definition: mbs_path.c:547
int find_project_path(const char *mbsfile, char *prjpath)
Find the project directory (containing dataR, symbolicR, ...) from Mbs filepath.
Definition: mbs_path.c:74