LibN2L-4 Library Code Reference
Classes
Compounds
Files
Members
Method Index
Full Reference
vfsUtilities.cpp File Reference
#include "vfsUtilities.h"
#include "n2l/n2l.h"
#include "n2l/dynVars.h"
#include "vfsConstants.h"
#include "cVfsOpenException.h"
#include "cVfsReadException.h"
#include "vfsFileTypes.h"
#include "cVfsNodeInterface.h"
#include "cVfsDirectory.h"
#include "cVfsFile.h"
#include <map>
#include <vector>
#include <sys/stat.h>
#include <stdio.h>
#include <dirent.h>
#include <errno.h>
#include <sys/types.h>
#include <pwd.h>
#include <unistd.h>
#include <libgen.h>
Include dependency graph for vfsUtilities.cpp:
Go to the source code of this file.
Namespaces
Functions
- const tString n2l::vfsPermissionsAsString (const tUint &iPerms)
- const tFsNodeType n2l::getFsNodeType (const tFsNodeName &iName)
- const tUint n2l::getVfsNodePermissions (const tVfsNodeName &iName)
- const tUint n2l::getFsNodePermissions (const tFsNodeName &)
- const tFsFileSize n2l::getFsNodeSize (const tFsNodeName &i_name)
- void n2l::getFsNodeDump (const tFsNodeName &i_name, tString &o_buffer)
- const tVfsNodeName n2l::convertFsLiteralNameToVfs (const tFsNodeName &iName)
- Take a fs path and return it as a vfs path to the same resource.
- const tVfsNodeName n2l::cleanVfsPath (const tVfsNodeName &iName)
- Take a Vfs path and/or file and return one that is safe for usage with the vfs library.
- const tFsNodeName n2l::cleanFsPath (const tFsNodeName &iName)
- Take a fs path and/or file and return one that is safe for usage with the vfs library.
- const vector< tVfsNodeName > n2l::splitVfsPathBlocks (const tVfsNodeName &i_name)
- const tVfsNodeName n2l::stripFrontLiteralVfsName (const tVfsNodeName &iName, tVfsNodeName &oStrippedName)
- Take a vfs path and remove the first element, returning both the first element and the remaining vfs path.
- const tString & n2l::simpleGuessVfsFileType (const tVfsNodeName &iName)
- Try to guess from a files name what it contains.
- const tUint n2l::vfsNodeFileWithHeader (const cVfsNodeInterface &iNode, const tString &iHeader, tVfsFileBuffer &oBuffer)
- Validate that a node is a file, and that it has a specific header.
- const tUint n2l::vfsNodeFileWithHeader (const cVfsNodeInterface &iNode, const tString &iHeader)
- Validate that a node is a file, and that it has a specific header.
- void n2l::vfsNodeFileWithHeader (const cVfsNodeInterface &iNode, const tString &iHeader, cDynVar &oDef)
- const tVfsNodeName n2l::vfsGetCWD ()
- const tVfsNodeName n2l::vfsGetHomeDir ()
- Retreive the fsPath of the users's home directory.
- const tString n2l::vfsGetExecBinaryDir (const tString &iArgV0)
- Discover the location on the file system of the running program.
- const n2l::tString _n2l::cleanPath (const n2l::tString &iName, const char iPathSplit)