Home »
Code Examples »
Groovy Code Examples
Groovy - Get the parent directory name of a specific file Code Example
Here is the solution for "Get the parent directory name of a specific file" in Groovy.
Groovy code for Get the parent directory name of a specific file
file.getParentFile().getName();
Code by IncludeHelp,
on March 13, 2023 22:47