src/swipl-devel/packages/xpce/man/refmanual/md/directory.md

class directory {#class-directory}

A directory object is a wrapper around a directory on the computers file-system. XPCE defines behaviour to handle files and directories for two reasons. First of all to support some of its own facilities such as saving things to file or loading things from file. Secondly to allow the user to query the file-system. Normally the host provides similar facilities, but notably for Prolog, not much of a standard exists. Using XPCE's primitives will make this part of your program better portable.

@see class file

Instance variables {#class-directory-instvars}

Send methods {#class-directory-send}

Get methods {#class-directory-get}



Try the rswipl package in your browser

Any scripts or data that you put into this service are public.

rswipl documentation built on June 16, 2026, 5:07 p.m.