1234567891011121314151617module 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
}
Flags related to changing the behaviour for how file paths are resolved. This is a bit mask that can be ORed together.