fexist
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | fexist [2008/05/28 19:46] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | # $EPIC: fexist.txt, | ||
+ | ======Synopsis: | ||
+ | $__fexist__(%%< | ||
+ | $__fexist__(%%"" | ||
+ | |||
+ | ======Technical: | ||
+ | * The %%< | ||
+ | * In the first case, %%< | ||
+ | * In the second case, the first argument is an empty string, and the rest of the arguments are taken as a filename literally. | ||
+ | * Tilde-expansion is supported in both forms, both " | ||
+ | * If %%< | ||
+ | * If %%< | ||
+ | * In the other cases (the file doesn' | ||
+ | |||
+ | ======Practical: | ||
+ | This function is used when you want to see if a particular file exists. | ||
+ | This could be useful to make sure a file is present before trying to | ||
+ | load it. This function does not return 0! | ||
+ | |||
+ | ======Returns: | ||
+ | < | ||
+ | -1 file does not exist or is not readable by you. | ||
+ | | ||
+ | </ | ||
+ | |||
+ | ======Examples: | ||
+ | < | ||
+ | $fexist(/ | ||
+ | $fexist(~/ | ||
+ | $fexist(fake_file) | ||
+ | </ | ||
+ | |||
+ | ======History: | ||
+ | This function first appeared in EPIC3pre7. | ||
fexist.txt · Last modified: 2008/05/28 19:46 by 127.0.0.1