IO::Mode(3) File modes


IO::Mode< >
= Mode([IO::Permission] ownerperms,[IO::Permission] groupperms,[IO::Permission] othersperms,Bool socket,Bool symlink,Bool regular,Bool block,Bool dir,Bool chardev,Bool fifo,Bool setUID,Bool setGID,Bool sticky)


This describes the mode of the file. The first three fields describe the access IO.Permission(3kaya) for the file owner, the file group, and others, while the remaining fields state whether a particular file property is true.

This data type mostly applies to the filesystems normally found on POSIX systems. On Windows, the file permission and type model is somewhat different, so this data type may not hold especially useful information there.


Kaya standard library by Edwin Brady, Chris Morris and others ([email protected]). For further information see


The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.