Scala: changed Test to use current dir
This commit is contained in:
@@ -6,10 +6,10 @@ import java.util.List;
|
|||||||
|
|
||||||
public class Test {
|
public class Test {
|
||||||
//
|
//
|
||||||
private static String CORNER = " └── ";
|
private static String CORNER = "└── ";
|
||||||
private static String BLANK = " ";
|
private static String BLANK = " ";
|
||||||
private static String JUNCTION = " ├── ";
|
private static String JUNCTION = "├── ";
|
||||||
private static String LINE = " │ ";
|
private static String LINE = "│ ";
|
||||||
|
|
||||||
static void recurse(Directory d, int level) {
|
static void recurse(Directory d, int level) {
|
||||||
List<Directory> subs = d.children;
|
List<Directory> subs = d.children;
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ object Test extends App {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val dir = new Directory(new File("/home/rob"))
|
val dir = new Directory(new File(if (args.length > 0) args(0) else "."))
|
||||||
val s = "%,16d".format(dir.totalSize) + " " + dir.fsdir.getCanonicalPath
|
val s = "%,16d".format(dir.totalSize) + " " + dir.fsdir.getCanonicalPath
|
||||||
println(s)
|
println(s)
|
||||||
recurse(dir, 1)
|
recurse(dir, 1)
|
||||||
|
|||||||
@@ -7,5 +7,6 @@
|
|||||||
</content>
|
</content>
|
||||||
<orderEntry type="inheritedJdk" />
|
<orderEntry type="inheritedJdk" />
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
<orderEntry type="library" name="scala-sdk-2.13.6" level="application" />
|
||||||
</component>
|
</component>
|
||||||
</module>
|
</module>
|
||||||
Reference in New Issue
Block a user