Skip to content

Modern Fs FileInfo IsOther

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

Home › Filesystem › Filesystem Library › FileInfo.IsOther

FileInfo.IsOther

Returns true if the path is a device, pipe or socket rather than a file, folder or link.

Syntax

FileInfo.IsOther( )

Examples

#import "std/fs"
using fs

dim td as FsResultUStr = CreateTempDir( "fbdoc" )
dim as ustring dir_ = td.Value( )
dim as ustring p = PathJoin( dir_, "f.txt" )
WriteAllText( p, "hello" )

'' Neither a regular file, nor a directory, nor a symlink: a device, a
'' pipe, a socket. The catch-all that keeps IsFile honest.
print Stat( p ).Value( ).IsOther( )      '' false
print Stat( dir_ ).Value( ).IsOther( )   '' false

RemoveDirAll( dir_ )

Library: Filesystem Library
Category: Filesystem
Documented under: Metadata

Clone this wiki locally