On Wed, Nov 30, 2016 at 4:14 AM, Johannes Sixt <j6t@xxxxxxxx> wrote: >> diff --git a/copy.c b/copy.c >> index 4de6a11..b232aec 100644 >> --- a/copy.c >> +++ b/copy.c >> @@ -65,3 +65,9 @@ int copy_file_with_time(const char *dst, const char >> *src, int mode) >> return copy_times(dst, src); >> return status; >> } >> + >> +int copy_dir_recursively(const char *dst, const char *src) >> +{ >> + errno = ENOSYS; >> + return -1; >> +} > > > An error message "cannot move directories across devices" or something would > be preferable over "Function not implemented", of course. Or did you mean to > set errno = EXDEV? The exact message is not super important right now. Though I'm thinking of adding move_directory() that is a wrapper of rename(). We can die("cannot move directories across devices") then and hopefully be able to move across devices at some point. -- Duy