40 ret = rename(oldname, newname);
45 if (
remove(oldname) != -1)
79 && strcmp(mapset, xmapset))
82 && strcmp(mapset, xmapset))
86 if (access(
G_file_name(from, element, oldname, mapset), 0) != 0)
char * G_file_name(char *, const char *, const char *, const char *)
Builds full path names to GIS data files.
int G_rename(const char *element, const char *oldname, const char *newname)
Rename a database file.
int G_copy_file(const char *, const char *)
Copies one file to another.
int G_rename_file(const char *oldname, const char *newname)
Rename a file or a directory in the filesystem.
const char * G_mapset(void)
Get current mapset name.
int G_name_is_fully_qualified(const char *, char *, char *)
Check if map name is fully qualified (map @ mapset)