teditor  1.8.0@@fee5e94
Terminal based editor written in C++
Classes | Namespaces | Typedefs | Functions
file_utils.h File Reference
#include <string>
#include <vector>
#include <unordered_map>
#include "utils.h"

Go to the source code of this file.

Classes

struct  teditor::Remote
 
struct  teditor::FilePerm
 
class  teditor::DirCache
 
class  teditor::FilesHist
 

Namespaces

 teditor
 

Typedefs

typedef std::vector< FilePerm > teditor::Files
 
typedef std::pair< std::string, int > teditor::FileInfo
 

Functions

bool teditor::isDir (const std::string &f)
 
bool teditor::isFile (const std::string &f)
 
bool teditor::isReadOnly (const char *f)
 
void teditor::makeDir (const std::string &d)
 
bool teditor::isRemote (const std::string &f)
 
std::string teditor::slurp (const std::string &file)
 
Strings teditor::slurpToArr (const std::string &file)
 
std::string teditor::getpwd ()
 
bool teditor::isAbs (const std::string &file)
 
std::string teditor::rel2abs (const std::string &pwd, const std::string &rel)
 
std::string teditor::basename (const std::string &file)
 
std::string teditor::dirname (const std::string &file)
 
std::string teditor::tempFileName ()
 
std::string teditor::findFirstUpwards (const std::string &dir, const std::string &file)
 
std::string teditor::extension (const std::string &name)
 
Files teditor::listDir (const std::string &dir)
 
Strings teditor::listDirRel (const std::string &dir)
 
std::string teditor::listDir2str (const std::string &dir)
 
std::string teditor::copyFromRemote (const std::string &file)
 
void teditor::copyToRemote (const std::string &rfile, const std::string &local)
 
void teditor::copyFile (const std::string &in, const std::string &out)
 
FileInfo teditor::readFileInfo (const std::string &arg)
 
bool teditor::fileStrFind (const std::string &line, const std::string &str)
 
bool teditor::isCurrentOrParentDir (const std::string &dir)