Deleting old files
#5036
-
I'm trying to understand how to bring in the java.io.File and java.io.FileFilter packages to delete files older than x days. Can't seem to find an example that uses these packages. |
Beta Was this translation helpful? Give feedback.
Answered by
odoodo
Feb 19, 2022
Replies: 2 comments
-
Use this code template and adapt it to your needs if necessary. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
rutledj
-
If you simply want to know how to import and use a class like java.io.File and java.io.FileFilter in your javascript, you can do that using `importPackage(package). Example:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use this code template and adapt it to your needs if necessary.