https://github.com/splatlab/squeakr
Raw File
Tip revision: d5653f87fe0121280e61e9360b13730f2f492c0a authored by prashantpandey on 18 December 2020, 05:04:37 UTC
Handling counter expansion for remainder 0.
Tip revision: d5653f8
SqueakrFS.h
//
// Copyright (C) 2017 Prahsant Pandey, Michael Bender,
// Rob Johnson, Rob Patro
//
// This file is part of Squeakr.
//

#ifndef __SQUEAKR_FILESYSTEM_HPP__
#define __SQUEAKR_FILESYSTEM_HPP__

#include <vector>
#include <string>

namespace squeakr {
	namespace fs {
		std::string GetDir(std::string str);
		// Taken from
		// http://stackoverflow.com/questions/12774207/fastest-way-to-check-if-a-file-exist-using-standard-c-c11-c
		bool FileExists(const char* path);
		// Taken from
		// http://stackoverflow.com/questions/12774207/fastest-way-to-check-if-a-file-exist-using-standard-c-c11-c
		bool DirExists(const char* path);
		void MakeDir(const char* path);
		// Taken from
		// https://stackoverflow.com/questions/19189014/how-do-i-find-files-with-a-specific-extension-in-a-directory-that-is-provided-by
		std::vector<std::string> GetFilesExt(const char *dir, const char *ext);
	}
}

#endif //__SQUEAKR_FILESYSTEM_HPP__
back to top