teditor  1.8.0@@fee5e94
Terminal based editor written in C++
Namespaces | Functions
file_utils.cpp File Reference
#include <sys/stat.h>
#include "file_utils.h"
#include <cstdlib>
#include <cstring>
#include <unistd.h>
#include <sys/types.h>
#include <signal.h>
#include <sys/wait.h>
#include <dirent.h>
#include <fcntl.h>
#include <fstream>
#include <iostream>
#include <cctype>
#include <algorithm>
#include "logger.h"

Namespaces

 teditor
 

Functions

std::string teditor::remoteFileType (const std::string &f)
 
bool teditor::isRemoteDir (const std::string &type)
 
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)
 
bool teditor::FileCompare (const FilePerm &a, const FilePerm &b)
 
Files teditor::listDir (const std::string &dir)
 
Strings teditor::listDirRel (const std::string &dir)
 
std::string teditor::listDir2str (const std::string &dir)
 
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)
 
std::string teditor::copyFromRemote (const std::string &file)
 
void teditor::copyToRemote (const std::string &rfile, const std::string &local)