diamond.io.file

Copyright © DiamondMVC 2019

Members

Enums

FileAccessSecurity
enum FileAccessSecurity

Enumeration of file access security.

Functions

addPathToWhiteList
void addPathToWhiteList(string path)

Adds a path to the white-list.

append
void append(FileAccessSecurity security, string file, string content)

Appends to a file securely.

exists
bool exists(FileAccessSecurity security, string path)

Checks whether a file or directory exists securely.

makeDir
void makeDir(FileAccessSecurity security, string path)

Makes a directory securely.

readBuffer
ubyte[] readBuffer(FileAccessSecurity security, string file)

Reads the buffer of a file securely.

readText
string readText(FileAccessSecurity security, string file)

Reads the content of a file securely.

remove
void remove(FileAccessSecurity security, string file)

Removes a file securely.

removeDir
void removeDir(FileAccessSecurity security, string path)

Removes a directory securely.

write
void write(FileAccessSecurity security, string file, string content)

Writes to a file securely.

Properties

webRootPath
string webRootPath [@property getter]

Gets the root path of the web application.

Meta

Authors

Jacob Jensen (bausshf)