-
Notifications
You must be signed in to change notification settings - Fork 95
Expand file tree
/
Copy pathFileSys.h
More file actions
33 lines (24 loc) · 997 Bytes
/
FileSys.h
File metadata and controls
33 lines (24 loc) · 997 Bytes
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
30
31
32
33
#pragma once
#include <vector>
#include "FileInfo.h"
namespace SevenZip
{
namespace intl
{
class FileSys
{
public:
static TString GetPath( const TString& filePath );
static TString GetFileName( const TString& filePathOrName );
static TString AppendPath( const TString& left, const TString& right );
static TString ExtractRelativePath( const TString& basePath, const TString& fullPath );
static bool DirectoryExists( const TString& path );
static bool IsDirectoryEmptyRecursive( const TString& path );
static bool CreateDirectoryTree( const TString& path );
static std::vector< FilePathInfo > GetFile(const TString& filePathOrName, bool absolutePath = false);
static std::vector< FilePathInfo > GetFilesInDirectory( const TString& directory, const TString& searchPattern, const TString& pathPrefix, bool recursive );
static CComPtr< IStream > OpenFileToRead( const TString& filePath );
static CComPtr< IStream > OpenFileToWrite( const TString& filePath );
};
}
}