OmniSciDB  72c90bc290
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
file_path_util.h File Reference

shared utility for globbing files, paths can be specified as either a single file, directory or wildcards More...

#include <array>
#include <optional>
#include <stdexcept>
#include <string>
#include <vector>
#include <boost/filesystem.hpp>
#include "Shared/DateTimeParser.h"
#include "Shared/StringTransform.h"
#include "Shared/clean_boost_regex.hpp"
+ Include dependency graph for file_path_util.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  shared::FileNotFoundException
 
class  shared::NoRegexFilterMatchException
 
struct  shared::FilePathOptions
 
class  shared::FileOrderBase< T >
 
class  shared::FileOrderLocal
 

Namespaces

 shared
 

Typedefs

using shared::LocalFileComparator = std::function< bool(const std::string &, const std::string &)>
 

Functions

void shared::throw_file_not_found (const std::string &file_path)
 
void shared::throw_no_filter_match (const std::string &pattern)
 
void shared::validate_sort_options (const FilePathOptions &options)
 
std::vector< std::string > shared::local_glob_filter_sort_files (const std::string &file_path, const FilePathOptions &options, const bool recurse)
 
bool shared::file_or_glob_path_exists (const std::string &path)
 
std::set< std::string > shared::check_for_rolled_off_file_paths (const std::vector< std::string > &all_file_paths, std::vector< std::string > &processed_file_paths)
 
bool shared::is_s3_uri (const std::string &file_path)
 

Variables

const std::string shared::FILE_SORT_ORDER_BY_KEY = "FILE_SORT_ORDER_BY"
 
const std::string shared::FILE_SORT_REGEX_KEY = "FILE_SORT_REGEX"
 
const std::string shared::PATHNAME_ORDER_TYPE = "PATHNAME"
 
const std::string shared::DATE_MODIFIED_ORDER_TYPE = "DATE_MODIFIED"
 
const std::string shared::REGEX_ORDER_TYPE = "REGEX"
 
const std::string shared::REGEX_DATE_ORDER_TYPE = "REGEX_DATE"
 
const std::string shared::REGEX_NUMBER_ORDER_TYPE = "REGEX_NUMBER"
 
const std::array< std::string, 5 > shared::supported_file_sort_order_types
 
const std::array< std::string, 2 > shared::non_regex_sort_order_types
 
const std::array< std::string, 3 > shared::regex_sort_order_types
 
const std::function< bool(const
std::string &, const
std::string &)> 
shared::common_regex_date_comp_
 
const std::function< bool(const
std::string &, const
std::string &)> 
shared::common_regex_number_comp_
 

Detailed Description

shared utility for globbing files, paths can be specified as either a single file, directory or wildcards

Definition in file file_path_util.h.