|
|||||
|
||||||
Related Syntax | Other Library Functions |
function |
vfs.describe-file |
Library: General, File system utilities (OMVFS)
Import: omvfs.xmd |
export external function describe-file value file file-ref into modifiable stream 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 stream 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: