Safeheron-SGX-Native-Development-Framework v1.2.0
Loading...
Searching...
No Matches
ssgx_filesystem_t.h File Reference
#include <string>
#include "sgx_key.h"
#include "sgx_tprotected_fs.h"
#include "ssgx_filesystem_t_enum.h"

Go to the source code of this file.

Classes

class  ssgx::filesystem_t::FileStatus
 A class to store file type and permissions. More...
 
class  ssgx::filesystem_t::Path
 A class for storing path. More...
 
class  ssgx::filesystem_t::FileSystemException
 Exception about filesystem. More...
 
class  ssgx::filesystem_t::PlainFileReader
 Read a plaintext file (file size <= 100 KB) More...
 
class  ssgx::filesystem_t::PlainFileWriter
 Write a plaintext file (file size <= 100 KB) More...
 
class  ssgx::filesystem_t::ProtectedFileReader
 A ProtectedFileReader for reading from the Intel SGX Protected File System. More...
 
class  ssgx::filesystem_t::ProtectedFileWriter
 A ProtectedFileWriter for writing to the Intel SGX Protected File System. More...
 

Namespaces

namespace  ssgx
 
namespace  ssgx::filesystem_t
 This module is designed to operate directly on files and directories in enclave.
 

Functions

bool ssgx::filesystem_t::CreateDirectory (const Path &p)
 Create a directory (attribute default 0755)
 
FileStatus ssgx::filesystem_t::Status (const Path &p)
 Retrieve file type and permissions; If the file is a symbolic link, the retrieved file type and permissions correspond to those of the target file it references.
 
FileStatus ssgx::filesystem_t::SymlinkStatus (const Path &p)
 Retrieve file type and permissions; This function can retrieve the type and permissions of the symbolic link file itself, distinct from its target file.
 
bool ssgx::filesystem_t::Exists (const FileStatus &s) noexcept
 Check if a file exists.
 
bool ssgx::filesystem_t::Exists (const Path &p)
 Check if a file exists.
 
bool ssgx::filesystem_t::Remove (const Path &p)
 Remove a file.
 
bool ssgx::filesystem_t::RemoveProtectedFile (const Path &file_name)
 Remove a protected file.
 
uintmax_t ssgx::filesystem_t::FileSize (const Path &p)
 Check the size of the file.
 
bool ssgx::filesystem_t::IsDirectory (const FileStatus &s) noexcept
 Check if the file is a directory.
 
bool ssgx::filesystem_t::IsDirectory (const Path &p)
 Check if the file is a directory.
 
bool ssgx::filesystem_t::IsEmpty (const Path &p)
 If the path is a directory, check whether it is empty; If the path is a regular file, check whether its size is 0.
 
bool ssgx::filesystem_t::IsRegularFile (const FileStatus &s) noexcept
 Check if the file is a regular file.
 
bool ssgx::filesystem_t::IsRegularFile (const Path &p)
 Check if the file is a regular file.