- // the document directory
- // use realPath() instead of absFileName() for comparing
- // so we can catch also eventually used symbolic parts of the path.
- string filepath = buf->fileName().onlyPath().realPath();
- string const sysdir = package().system_support().realPath();
+ os << "\\save_transient_properties "
+ << convert<string>(save_transient_properties) << '\n';
+
+ // the document directory (must end with a path separator)
+ // realPath() is used to resolve symlinks, while addPath(..., "")
+ // ensures a trailing path separator.
+ string filepath = addPath(buf->fileName().onlyPath().realPath(), "");
+ string const sysdir = addPath(package().system_support().realPath(), "");