Class FileSystemManager


  • @Singleton
    public class FileSystemManager
    extends Object
    • Constructor Detail

      • FileSystemManager

        @Inject
        public FileSystemManager​(CluecumberLogger logger)
    • Method Detail

      • getJsonFilePaths

        public List<Path> getJsonFilePaths​(String sourcePath)
        Return a list of JSON files in a given directory.
        Parameters:
        sourcePath - The path in which to search for JSON files.
        Returns:
        A list of JSON file paths.
      • copyResourceFromJar

        public void copyResourceFromJar​(String resourceName,
                                        String destination)
                                 throws CluecumberException
        Export a resource embedded into a Jar file to the local file path.
        Parameters:
        resourceName - path to the embedded resource.
        destination - full path to the destination resource.
        Throws:
        CluecumberException - see CluecumberException.