Saving files using relative paths
Last updated
Last updated
The location for each published file type can be set in the Output folder field.
Different settings are possible, see below.
The Output folder field is empty (<empty>
).
Files are published to default subdirectories based on the published file type, next to the original files.
The Output folder is fixed by a user (e.g., C:\PDF
).
Files are published into the specified directory.
The Output folder = .\
Files are published in the same directory as the original (source) file.
The Output folder = .\DIRECTORYNAME
Files are published in a directory relative to the original (source) file.
The Output folder = ..\
Files are published in a parent directory relative to the original (source) file.
The Output folder = ..\DIRECTORYNAME
Files are published in the subdirectory of the parent directory relative to the original (source) file.
More info is available here: https://learn.microsoft.com/en-us/dotnet/standard/io/file-path-formats