add exists_in_package script function

This commit is contained in:
GenevensiS
2024-09-17 06:13:01 +02:00
parent 4767332060
commit 4054443a72
7 changed files with 79 additions and 5 deletions
+13
View File
@@ -0,0 +1,13 @@
Function: exists_in_package
--Usage--
> exists_in_package("/package/filename")
Check if a file exists in a given package.
--Parameters--
! Parameter Type Description
| @input@ [[type:string]] Path of the file, starting from the data directory.
--Examples--
> exists_in_package("/magic-modules.mse-include/watermarks/custom_user_watermark.png") == true