homeDir

Get path to home directory.

@safe
homeDir
()

Examples

version (Posix) {
	import std.path : expandTilde;
	assert(homeDir().str == "~".expandTilde);
}

See Also

tempDir See: https://forum.dlang.org/post/gg9kds$1at0$1@digitalmars.com

Meta