Package org.apache.aries.util.filesystem
Class FileUtils
- java.lang.Object
-
- org.apache.aries.util.filesystem.FileUtils
-
public class FileUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description FileUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<java.net.URI>
getBundlesRecursive(java.net.URI sourceDir)
Get a list of URLs for the bundles under the parent URLstatic boolean
isBundle(java.io.File file)
Check whether a file is a bundle.
-
-
-
Method Detail
-
isBundle
public static boolean isBundle(java.io.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 java.util.List<java.net.URI> getBundlesRecursive(java.net.URI sourceDir) throws java.io.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:
java.io.IOException
-
-