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

IsLargeFile

    isLargeFile(
S_name 
[ tl_path ] 
) 
=> t / nil

Description

Checks if a file is a large file (with size greater than 2GB).

The file name can be specified with either an absolute path or a relative path. In the latter case, the current SKILL path is searched if it’s not nil. A path that is anchored to the current directory, for example, ./, ../, or ../../.., and so on, is not considered as a relative path.

The SKILL path can be overridden by specifying tl_path.

Arguments

S_name

Name of the file you want to check.

tl_path

List of paths to override the SKILL path.  

Value Returned

t

The S_name file has a size greater than 2GB.

nil

The S_name file has a size less than or equal to 2GB.

Examples

fileLength( "largeFile" ) 
=> 3072000000  
isLargeFile( "largeFile" ) 
=> t

Related Topics

fileLength

isFile

isFileName


Return to top
 ⠀
X