MCPcopy Create free account
hub / github.com/crownengine/crown / rename

Method rename

src/core/filesystem/filesystem_disk.cpp:345–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343}
344
345RenameResult FilesystemDisk::rename(const char *old_path, const char *new_path)
346{
347 CE_ENSURE(old_path != NULL);
348 CE_ENSURE(new_path != NULL);
349
350 DynamicString old_abs_path(default_allocator());
351 DynamicString new_abs_path(default_allocator());
352 absolute_path(old_abs_path, old_path);
353 absolute_path(new_abs_path, new_path);
354
355 return os::rename(old_abs_path.c_str(), new_abs_path.c_str());
356}
357
358void FilesystemDisk::list_files(const char *path, Vector<DynamicString> &files)
359{

Callers

nothing calls this directly

Calls 2

renameFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected