Product Documentation
Cadence SKILL Language Reference
Product Version IC23.1, November 2023

isFileEncrypted

isFileEncrypted( 
S_name 
) 
=> t / nil

Description

Checks if a file exists and is encrypted.

Similar to isFile, except that it returns t only if the file exists and is encrypted. Uses the current SKILL path for relative paths. A path that is anchored to the current directory, for example, ./, ../, or ../../.., and so on, is not considered as a relative path.

Arguments

S_name

File you want to check.

Value Returned

t

The S_name file exists and is encrypted.

nil

The S_name file does not exist or is not encrypted.

Examples

isFileEncrypted( "~/testfns.il") 
=> nil
encrypt( "~/testfns.il" "~/testfns.ile")
isFileEncrypted( "~/testfns.ile")
=> t

Related Topics

getSkillPath

isFile


Return to top
 ⠀
X