]> Kevux Git Server - fll/commit
Update: rename f_file_move to f_file_rename, add fll_file_move, and address printf().
authorKevin Day <thekevinday@gmail.com>
Thu, 10 Sep 2020 02:39:03 +0000 (21:39 -0500)
committerKevin Day <thekevinday@gmail.com>
Thu, 10 Sep 2020 02:39:03 +0000 (21:39 -0500)
commite4f457869f14813c90a92447f5c93562a928adba
treebde0edbee8a2db9f31e5222f3ada9dd94356d59f
parent38eaac9290127863014a55a562ce2f1ff2f58ac8
Update: rename f_file_move to f_file_rename, add fll_file_move, and address printf().

The move function should operate as a move would expect, which includes cross-filesystem.
Rename the f_file_move() to f_file_rename() and ensure the limitations are documented.

The fll_file_move()  calls f_file_rename() and if that fails due to being across filesystems, then call the appropriate clone and remove functions depending on whether or not the source is a file or directory.

I try to avoid having any output strings in the project that is below level 3 (but level 2 may have exceptions).
Rewrite parts of the directory copy and clone functions to use passed functions instead of directly printing.

Cleanup some function's documentation.
14 files changed:
level_0/f_directory/c/directory.c
level_0/f_directory/c/directory.h
level_0/f_file/c/file.c
level_0/f_file/c/file.h
level_1/fl_directory/c/directory.c
level_1/fl_directory/c/directory.h
level_1/fl_directory/c/private-directory.c
level_1/fl_directory/c/private-directory.h
level_2/fll_file/c/file.c
level_2/fll_file/c/file.h
level_3/fake/c/private-build.c
level_3/fake/c/private-fake.c
level_3/fake/c/private-fake.h
level_3/fake/c/private-make.c