Extractor

container.Extractor$
object Extractor

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

def completeDirectoryPath(path: String): String

Make sure that the path ends with '/'

Make sure that the path ends with '/'

Attributes

def createDirectory(directoryPath: String): Status
def executeCommand(cmd: String): (Int, String, String)
def extractLines(file: File): String
def getDirectoryPath(path: String, fileName: String): String

Create a directory path corresponding to an archive by removing the extension from the archive name and keeping the same path dsd.

Create a directory path corresponding to an archive by removing the extension from the archive name and keeping the same path dsd.

This function can be modified later to for example include a random id in the directory name, if you want to make it unique.

Attributes

def getPathAndFileName(filepath: String): (String, String)

Split a filepath into a path and a filename

Split a filepath into a path and a filename

Attributes

def isAnArchive(filename: String): Boolean

Detect whether a file is an archive or not using its extension (quick and dirty way, yes).

Detect whether a file is an archive or not using its extension (quick and dirty way, yes).

Attributes