|
|||||
|
||||||
Related Topics | Other Library Functions |
function |
vfs.describe-file |
Library: File system utilities (OMVFS)
Import: omvfs.xmd |
export external function describe-file value file file-ref into write-only string attributes
Argument definitions
You can use vfs.describe-file to access the attributes of a file that has been opened using vfs.open
. vfs.describe-file
behaves the same way as vfs.describe except that:
The following program outputs a description of a file. See vfs.describe
for details.
import "omvfs.xmd" prefixed by vfs. process local string attr variable local vfs.file bar-file set bar-file to vfs.open "c:\foo\bar\bar.txt" vfs.describe-file bar-file into attr repeat over attr output key of attr || ": " || attr || "%n" again output "User write permission: " do when attr{"permissions"} mask vfs.permit-user-write > 0 output "YES%n" else output "NO%n" done
The following exceptions may occur:
Copyright © Stilo International plc, 1988-2010.