summaryrefslogtreecommitdiff
path: root/shared/check_exist.h
blob: 7e9cecd81e4d77df60f3a121450fd53df51a9479 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// **************************************************************************
// * This file is part of the FreeFileSync project. It is distributed under *
// * GNU General Public License: http://www.gnu.org/licenses/gpl.html       *
// * Copyright (C) 2008-2010 ZenJu (zhnmju123 AT gmx.de)                    *
// **************************************************************************
//
#ifndef CHECKEXIST_H_INCLUDED
#define CHECKEXIST_H_INCLUDED

#include "zstring.h"

namespace util
{
enum ResultExist
{
    EXISTING_TRUE,
    EXISTING_FALSE,
    EXISTING_TIMEOUT
};

ResultExist fileExists(const Zstring& filename, size_t timeout); //timeout in ms
ResultExist dirExists( const Zstring& dirname,  size_t timeout); //timeout in ms
}

#endif // CHECKEXIST_H_INCLUDED
bgstack15