summaryrefslogtreecommitdiff
path: root/tools.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2015-02-07 16:08:13 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2015-02-07 16:08:13 +0100
commit8225d3758f31f63f420bef783db60b2a7dd1b31d (patch)
tree2c08e36b36a5afb1409fa487bdcbc7d74a0effec /tools.h
parent202a6b3072d996f05ab45c635c2e8108e7735025 (diff)
downloadvdr-8225d3758f31f63f420bef783db60b2a7dd1b31d.tar.gz
vdr-8225d3758f31f63f420bef783db60b2a7dd1b31d.tar.bz2
Modified EntriesOnSameFileSystem(), so that it returns 'true' if either of the given; changed handling the 'error' variable in cDirCopier
Diffstat (limited to 'tools.h')
-rw-r--r--tools.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools.h b/tools.h
index 920a1d11..0987234b 100644
--- a/tools.h
+++ b/tools.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: tools.h 3.6 2015/01/14 09:09:06 kls Exp $
+ * $Id: tools.h 3.7 2015/02/07 16:07:22 kls Exp $
*/
#ifndef __TOOLS_H
@@ -234,6 +234,9 @@ cString dtoa(double d, const char *Format = "%f");
cString itoa(int n);
cString AddDirectory(const char *DirName, const char *FileName);
bool EntriesOnSameFileSystem(const char *File1, const char *File2);
+ ///< Checks whether the given files are on the same file system. If either of the
+ ///< files doesn't exist, this function returns *true* to avoid any actions that might be
+ ///< triggered if files are on different file system.
int FreeDiskSpaceMB(const char *Directory, int *UsedMB = NULL);
bool DirectoryOk(const char *DirName, bool LogErrors = false);
bool MakeDirs(const char *FileName, bool IsDirectory = false);