This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def listSubdirectoriesRecursively( | |
| directory: Path, | |
| list: mutable.ListBuffer[Path] = new mutable.ListBuffer[Path] | |
| ): List[Path] = { | |
| val iterator = fs.listLocatedStatus(directory) | |
| while (iterator.hasNext) { | |
| val pathStatus = iterator.next() | |
| val path = pathStatus.getPath |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Try to get the original filename (present in the header) of the gz file. | |
| # Check http://www.onicos.com/staff/iz/formats/gzip.html | |
| def get_original_fileName(path): | |
| with open(path, 'rb') as f: | |
| magic = f.read(2) | |
| if magic != '\037\213': | |
| raise IOError, 'Not a gzipped file' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ls -l -ad dev-* |
NewerOlder