common_util
Loading...
Searching...
No Matches
Classes | Typedefs | Enumerations | Variables
filetype.h File Reference

Define the structs about fileutil, such as filetype and file_entity. More...

#include <vector>
#include <string>

Go to the source code of this file.

Classes

struct  cutl::file_entity
 file entity struct. include file type and file path. More...
 

Typedefs

using cutl::filevec = std::vector<file_entity>
 The vector of file_entity.
 

Enumerations

enum  cutl::filetype {
  cutl::unknown = 0x00 , cutl::directory = 0x01 , cutl::file = 0x02 , cutl::symlink = 0x04 ,
  cutl::char_special = 0x08 , cutl::block_special = 0x10 , cutl::pipefifo = 0x20 , cutl::socket = 0x40 ,
  cutl::all = 0xFF
}
 The type of file. More...
 

Variables

constexpr int cutl::MAX_PATH_LEN = 1024
 Constants value: max path length.
 

Detailed Description

Define the structs about fileutil, such as filetype and file_entity.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations.

Author
spencer.luo
Date
2024-05-13

Enumeration Type Documentation

◆ filetype

The type of file.

Enumerator
unknown 

undefined

directory 

directory

file 

regular file

symlink 

symbolic link

char_special 

character device, only for unix

block_special 

block device, only for unix

pipefifo 

named pipe, only for unix

socket 

socket file, only for unix

all 

type mask, includes all types