Exemple #1
0
static int _single_dir(Copy * copy, char const * src, char const * dst,
		mode_t mode)
{
	if(*(copy->prefs) & PREFS_R)
		return _single_recurse(copy, src, dst, mode);
	_copy_filename_info(copy, src, _("Omitting directory"));
	return 0;
}
Exemple #2
0
static int _single_dir(Move * move, char const * src, char const * dst)
{
	if(_single_recurse(move, src, dst) != 0)
		return 1;
	if(rmdir(src) != 0) /* FIXME probably gonna fail, recurse before */
		_move_filename_error(move, src, 0);
	return 0;
}