Package org.yamcs.filetransfer
Class LsAlListingParser
java.lang.Object
org.yamcs.filetransfer.FileListingParser
org.yamcs.filetransfer.LsAlListingParser
Parses a directory listing formatted as the output of
ls -al (or ls -la), e.g.:
total 4 drwx------ 2 user user 80 Jul 29 12:42 . drwxrwxrwt 29 root root 1020 Jul 29 12:42 .. -rw-r--r-- 1 user user 28 Jul 29 12:42 myfile.txtThe
total N line and the ./.. entries are always ignored.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSpec()voidinit(String yamcsInstance, YConfiguration config) Parse the provided text data into a list of RemoteFiles
-
Constructor Details
-
LsAlListingParser
public LsAlListingParser()
-
-
Method Details
-
getSpec
- Specified by:
getSpecin classFileListingParser
-
init
- Overrides:
initin classFileListingParser
-
parse
Description copied from class:FileListingParserParse the provided text data into a list of RemoteFiles- Specified by:
parsein classFileListingParser- Parameters:
remotePath- remote path where the file listing is locateddata- text data (e.g. coming from a file)- Returns:
- parsed remote files and directories
-