edelib 2.1.0
FileTest.h
1/*
2 * $Id: FileTest.h 2839 2009-09-28 11:36:20Z karijes $
3 *
4 * File info facility
5 * Copyright (c) 2009 edelib authors
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public License
18 * along with this library. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21#ifndef __EDELIB_FILETEST_H__
22#define __EDELIB_FILETEST_H__
23
24#include "edelib-global.h"
25
26EDELIB_NS_BEGIN
27
32typedef enum {
43 FILE_TEST_EXISTS = 1 << 10
44} FileTestFlags;
45
60EDELIB_API bool file_test(const char* path, unsigned int flags);
61
62EDELIB_NS_END
63#endif
@ FILE_TEST_IS_FIFO
FIFO (pipes)
Definition: FileTest.h:38
@ FILE_TEST_IS_EXECUTABLE
executable
Definition: FileTest.h:42
@ FILE_TEST_IS_SYMLINK
symbolic link
Definition: FileTest.h:35
@ FILE_TEST_IS_BLOCK
block device
Definition: FileTest.h:37
@ FILE_TEST_IS_WRITEABLE
writeable
Definition: FileTest.h:41
@ FILE_TEST_IS_CHAR
character device
Definition: FileTest.h:36
@ FILE_TEST_IS_READABLE
readable
Definition: FileTest.h:40
@ FILE_TEST_IS_DIR
directory
Definition: FileTest.h:34
@ FILE_TEST_EXISTS
exists, no matter what type
Definition: FileTest.h:43
@ FILE_TEST_IS_SOCKET
socket
Definition: FileTest.h:39
@ FILE_TEST_IS_REGULAR
file
Definition: FileTest.h:33
bool file_test(const char *path, unsigned int flags)