Package org.apache.aries.util.filesystem
Class FileUtils
- java.lang.Object
-
- org.apache.aries.util.filesystem.FileUtils
-
public class FileUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description FileUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<URI>
getBundlesRecursive(URI sourceDir)
Get a list of URLs for the bundles under the parent URLstatic boolean
isBundle(File file)
Check whether a file is a bundle.
-
-
-
Method Detail
-
isBundle
public static boolean isBundle(File file)
Check whether a file is a bundle.- Parameters:
file
- the file path- Returns:
- true if the file is a bundle, false else
-
getBundlesRecursive
public static List<URI> getBundlesRecursive(URI sourceDir) throws IOException
Get a list of URLs for the bundles under the parent URL- Parameters:
sourceDir
- The parent URL- Returns:
- the list of URLs for the bundles
- Throws:
IOException
-
-