Skip to content

Modern Fs FileInfo AbsolutePath

Paul Squires edited this page Oct 19, 2026 · 5 revisions

Home › Filesystem › Filesystem Library › AbsolutePath

AbsolutePath

Returns the full form of a path against the current folder; the path need not exist.

Syntax

AbsolutePath( p )

Notes

  • FsResultUStr

Examples

#import "std/fs"
using fs

'' PURELY TEXTUAL apart from needing the current directory: it prefixes
'' the working directory and normalises, and never asks whether the path
'' exists
dim r as FsResultUStr = AbsolutePath( "src" )

print r.IsOk( )              '' true
print PathIsAbsolute( r.Value( ) )       '' true

'' It works on a path that is not there, which is what makes it
'' different from CanonicalPath
print AbsolutePath( "no_such_thing" ).IsOk( )    '' true

Library: Filesystem Library
Category: Filesystem
Documented under: Metadata

Clone this wiki locally