Skip to content

Namespace mediapipe::file

Namespace List > mediapipe > file

Namespaces

Type Name
namespace anonymous_namespace{file_helpers.cc}
namespace internal

Public Functions

Type Name
absl::Status AppendStringToFile (absl::string_view file_name, absl::string_view contents)
absl::string_view Basename (absl::string_view path)
absl::string_view Dirname (absl::string_view path)
absl::Status Exists (absl::string_view file_name)
absl::string_view Extension (absl::string_view path)
absl::Status GetContents (absl::string_view file_name, std::string * output, bool read_as_binary)
absl::Status IsDirectory (absl::string_view file_name)
std::string JoinPath (absl::string_view path1, absl::string_view path2)
std::string JoinPath ()
std::string JoinPath (absl::string_view path)
std::string JoinPath (absl::string_view path1, absl::string_view path2, absl::string_view path3, const T &... args)
absl::Status MatchFileTypeInDirectory (const std::string & directory, const std::string & file_suffix, std::vector< std::string > * results)
absl::Status MatchInTopSubdirectories (const std::string & parent_directory, const std::string & file_name, std::vector< std::string > * results)
absl::Status RecursivelyCreateDir (absl::string_view path)
absl::Status SetContents (absl::string_view file_name, absl::string_view content)
std::pair< absl::string_view, absl::string_view > SplitPath (absl::string_view path)
int mkdir (std::string path)

Public Functions Documentation

function AppendStringToFile

absl::Status mediapipe::file::AppendStringToFile (
    absl::string_view file_name,
    absl::string_view contents
) 

function Basename

absl::string_view mediapipe::file::Basename (
    absl::string_view path
) 

function Dirname

absl::string_view mediapipe::file::Dirname (
    absl::string_view path
) 

function Exists

absl::Status mediapipe::file::Exists (
    absl::string_view file_name
) 

function Extension

absl::string_view mediapipe::file::Extension (
    absl::string_view path
) 

function GetContents

absl::Status mediapipe::file::GetContents (
    absl::string_view file_name,
    std::string * output,
    bool read_as_binary
) 

function IsDirectory

absl::Status mediapipe::file::IsDirectory (
    absl::string_view file_name
) 

function JoinPath

std::string mediapipe::file::JoinPath (
    absl::string_view path1,
    absl::string_view path2
) 

function JoinPath

inline std::string mediapipe::file::JoinPath () 

function JoinPath

inline std::string mediapipe::file::JoinPath (
    absl::string_view path
) 

function JoinPath

template<typename... T>
inline std::string mediapipe::file::JoinPath (
    absl::string_view path1,
    absl::string_view path2,
    absl::string_view path3,
    const T &... args
) 

function MatchFileTypeInDirectory

absl::Status mediapipe::file::MatchFileTypeInDirectory (
    const std::string & directory,
    const std::string & file_suffix,
    std::vector< std::string > * results
) 

function MatchInTopSubdirectories

absl::Status mediapipe::file::MatchInTopSubdirectories (
    const std::string & parent_directory,
    const std::string & file_name,
    std::vector< std::string > * results
) 

function RecursivelyCreateDir

absl::Status mediapipe::file::RecursivelyCreateDir (
    absl::string_view path
) 

function SetContents

absl::Status mediapipe::file::SetContents (
    absl::string_view file_name,
    absl::string_view content
) 

function SplitPath

std::pair< absl::string_view, absl::string_view > mediapipe::file::SplitPath (
    absl::string_view path
) 

function mkdir

int mediapipe::file::mkdir (
    std::string path
) 


The documentation for this class was generated from the following file /home/friedel/devel/ILLIXR-plugins/hand_tracking/mediapipe/framework/deps/file_helpers.cc