MiniOB
1
MiniOB is one mini database, helping developers to learn how database works.
载入中...
搜索中...
未找到
src
common
os
path.h
1
/* Copyright (c) 2021 OceanBase and/or its affiliates. All rights reserved.
2
miniob is licensed under Mulan PSL v2.
3
You can use this software according to the terms and conditions of the Mulan PSL v2.
4
You may obtain a copy of Mulan PSL v2 at:
5
http://license.coscl.org.cn/MulanPSL2
6
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
7
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
8
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
9
See the Mulan PSL v2 for more details. */
10
11
//
12
// Created by Longda on 2021/3/27.
13
//
14
15
#pragma once
16
17
#include "common/lang/string.h"
18
19
namespace
common {
20
30
string
getFileName(
const
string
&fullPath);
31
void
getFileName(
const
char
*path,
string
&fileName);
32
41
string
getFilePath(
const
string
&fullPath);
42
void
getDirName(
const
char
*path,
string
&parent);
43
49
string
getAboslutPath(
const
char
*path);
50
54
bool
is_directory(
const
char
*path);
55
61
bool
check_directory(
string
&path);
62
68
int
list_file(
const
char
*path,
const
char
*filter_pattern, vector<string> &files);
// io/io.h::getFileList
69
70
}
// namespace common
制作者
1.9.5