summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/os_posix/os_path.c
blob: a05f675d8d040f2b685b8620e172aadaea5cdfae (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
26
27
28
29
/*-
 * Copyright (c) 2014-present MongoDB, Inc.
 * Copyright (c) 2008-2014 WiredTiger, Inc.
 *	All rights reserved.
 *
 * See the file LICENSE for redistribution information.
 */

#include "wt_internal.h"

/*
 * __wt_absolute_path --
 *     Return if a filename is an absolute path.
 */
bool
__wt_absolute_path(const char *path)
{
    return (path[0] == '/');
}

/*
 * __wt_path_separator --
 *     Return the path separator string.
 */
const char *
__wt_path_separator(void)
{
    return ("/");
}