diff options
Diffstat (limited to 'shared/recycler.h')
-rw-r--r-- | shared/recycler.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/shared/recycler.h b/shared/recycler.h new file mode 100644 index 00000000..14aff4c0 --- /dev/null +++ b/shared/recycler.h @@ -0,0 +1,21 @@ +#ifndef RECYCLER_H_INCLUDED +#define RECYCLER_H_INCLUDED + +#include "fileError.h" +#include "zstring.h" +#include <vector> + +#ifndef FFS_WIN +use in windows build only! +#endif + + +namespace FreeFileSync +{ +//single-file processing +void moveToWindowsRecycler(const Zstring& fileToDelete); //throw (FileError) +//multi-file processing: about a factor of 15 faster than single-file +void moveToWindowsRecycler(const std::vector<Zstring>& filesToDelete); //throw (FileError) -> on error reports about first file only! +} + +#endif // RECYCLER_H_INCLUDED |