Skip to content

Modern Fs FileInfo CurrentDir

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

Home › Filesystem › Filesystem Library › CurrentDir

CurrentDir

Returns the program's current folder.

Syntax

CurrentDir( )

Notes

  • FsResultUStr

Examples

#import "std/fs"
using fs

dim r as FsResultUStr = CurrentDir( )

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

'' PROCESS-WIDE STATE, and therefore not thread-safe: another thread can
'' change it between this call and the next. Prefer absolute paths to
'' relying on it.

Library: Filesystem Library
Category: Filesystem
Documented under: Metadata

Clone this wiki locally