ModErn Text Analysis
META Enumerates Textual Applications
Namespaces | Functions
filesystem.h File Reference
#include <string>
#include <fstream>
#include <vector>
#include <sys/stat.h>
#include "io/mmap_file.h"
#include "util/printing.h"
#include "util/progress.h"
#include "shim.h"

Go to the source code of this file.

Namespaces

 meta
 The ModErn Text Analysis toolkit is a suite of natural language processing, classification, information retreival, data mining, and other applications of text processing.
 

Functions

void meta::filesystem::delete_file (const std::string &filename)
 Deletes the given file. More...
 
void meta::filesystem::rename_file (const std::string &old_name, const std::string &new_name)
 Renames the given file. More...
 
bool meta::filesystem::make_directory (const std::string &dir_name)
 Attempts to create the directory. More...
 
bool meta::filesystem::file_exists (const std::string &filename)
 
uint64_t meta::filesystem::file_size (const std::string &filename)
 Calculates a file's size in bytes with support for files over 4GB. More...
 
bool meta::filesystem::copy_file (const std::string &source, const std::string &dest)
 Copies a file source to file dest. More...
 
std::string meta::filesystem::file_text (const std::string &in_name)
 
uint64_t meta::filesystem::num_lines (const std::string &filename, char delimiter= '\n')
 

Detailed Description

Author
Sean Massung

All files in META are dual-licensed under the MIT and NCSA licenses. For more details, consult the file LICENSE.mit and LICENSE.ncsa in the root of the project.