Close
Close window
Test - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


[フレーム] [フレーム]

Security

Test

test if an operation is permitted

Calling Sequence

Test( op, file )

Parameters

op

-

a name representing operation

file

-

a file name as a string

Description

This routine tests if the operation op on the file file is permitted, when tested against the current security settings. Security need not be enabled in order to test the operation.

The Test command returns true if the operation in op on the file file is permitted under the current Security settings, and false otherwise.

The operation op must be one of: `read`, write, or extcall.

For an overview of Maple engine security and an explanation of relevant concepts, see the Maple Engine Security help page.

Examples

>

Security:-ConfigSECURE_READ_LIST=/tmp/*:

>

Security:-Test`read`,/tmp/file1

true

(1)
>

Security:-Test`read`,/usr/file1

false

(2)
>

Security:-Testwrite,/tmp/file1

false

(3)
>

Security:-Testextcall,/tmp/file1

false

(4)


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /