Flutter Engine
The Flutter Engine
Namespaces | Functions
file_posix.cc File Reference
#include "flutter/fml/file.h"
#include <dirent.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <unistd.h>
#include <cstring>
#include <memory>
#include <sstream>
#include "flutter/fml/eintr_wrapper.h"
#include "flutter/fml/logging.h"
#include "flutter/fml/mapping.h"
#include "flutter/fml/trace_event.h"
#include "flutter/fml/unique_fd.h"

Go to the source code of this file.

Namespaces

namespace  fml
 

Functions

std::string fml::CreateTemporaryDirectory ()
 
static int fml::ToPosixAccessFlags (FilePermission permission)
 
static int fml::ToPosixCreateModeFlags (FilePermission permission)
 
fml::UniqueFD fml::OpenFile (const char *path, bool create_if_necessary, FilePermission permission)
 This can open a directory on POSIX, but not on Windows. More...
 
fml::UniqueFD fml::OpenFile (const fml::UniqueFD &base_directory, const char *path, bool create_if_necessary, FilePermission permission)
 This can open a directory on POSIX, but not on Windows. More...
 
fml::UniqueFD fml::OpenDirectory (const char *path, bool create_if_necessary, FilePermission permission)
 
fml::UniqueFD fml::OpenDirectory (const fml::UniqueFD &base_directory, const char *path, bool create_if_necessary, FilePermission permission)
 
fml::UniqueFD fml::Duplicate (fml::UniqueFD::element_type descriptor)
 
bool fml::IsDirectory (const fml::UniqueFD &directory)
 
bool fml::IsDirectory (const fml::UniqueFD &base_directory, const char *path)
 
bool fml::IsFile (const std::string &path)
 
bool fml::TruncateFile (const fml::UniqueFD &file, size_t size)
 
bool fml::UnlinkDirectory (const char *path)
 
bool fml::UnlinkDirectory (const fml::UniqueFD &base_directory, const char *path)
 
bool fml::UnlinkFile (const char *path)
 
bool fml::UnlinkFile (const fml::UniqueFD &base_directory, const char *path)
 
bool fml::FileExists (const fml::UniqueFD &base_directory, const char *path)
 
bool fml::WriteAtomically (const fml::UniqueFD &base_directory, const char *file_name, const Mapping &mapping)
 
bool fml::VisitFiles (const fml::UniqueFD &directory, const FileVisitor &visitor)