Marmos
v juptune
v asn1
v lang
v ast
v Classes
v Enums
v ir
v parser
v Enums
v Structs
v core
v crypto
v keyexchange
v memory
v data
v alphabet
v buffer
v json
v builder
v parser
v Enums
v Structs
v serialise
v Structs
v Templates
v pem
v Enums
v Structs

Enums PosixFile.ResolveFlags

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module juptune.event.io;

enum ResolveFlags : int
{
    /// No changes. They work as you'd expect. 
    asNormal = 0, 
    /// The path to the file being opened MUST belong to the same mounting point as the current working directory. 
    mustBeOnSameMountAsCwd = 1, 
    /// "Magic links" (google it) will generate an error result upon being opened. 
    noMagicLinks = 2, 
    /// The path to the file being opened MUST NOT contain a symlink at any point in its path. 
    noSymlinksAtAnyPoint = 4, 
    /// The path MUST NOT contain a starting "/", and MUST NOT contain any usage of things like "../". This guarentees that the file being opened, is directly under the current working directory. (TODO: Would be really nice to detach this functionality from the CWD). 
    mustBeBeneathCwd = 8, 
    /// The current working directory is treated as a fake root, so "/" resolves to the CWD, and "../" cannot break out of the CWD. 
    cwdIsFakeRoot = 16
}

Documentation

Flags related to changing the behaviour for how file paths are resolved. This is a bit mask that can be ORed together.

ON THIS PAGE