Skip to content

Modern Fs FsError Path2

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

Home › Filesystem › Filesystem Library › FsError.Path2

FsError.Path2

Returns the second path of a failed copy, move or link call.

Syntax

FsError.Path2( )

Notes

  • the second path, for CopyFile / MoveFile / CreateSymlink.

Examples

#import "std/numeric"
#import "std/fs"
using fs, numeric

'' The SECOND path, for the two-path operations: CopyFile, MoveFile,
'' CreateSymlink, ReplaceFile
dim e as FsError = FsError( FS_ALREADY_EXISTS, 183, "CopyFileW", "a.txt" )

print "[" & e.Path2( ) & "]"     '' [] -- empty unless the call had two

'' Which is why a diagnostic should print Path( ) and Path2( ) together
'' rather than assuming one

Library: Filesystem Library
Category: Filesystem
Documented under: Errors

Clone this wiki locally