From 7ac1b01c591ed65743676b1181d60eb17c5cb69d Mon Sep 17 00:00:00 2001
From: Normand Briere <nbriere@noware.ca>
Date: Wed, 21 Aug 2019 18:58:52 -0400
Subject: [PATCH] U dir and average.
---
timeflow/app/TimeflowApp.java | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/timeflow/app/TimeflowApp.java b/timeflow/app/TimeflowApp.java
index d2c47c4..f70bc07 100755
--- a/timeflow/app/TimeflowApp.java
+++ b/timeflow/app/TimeflowApp.java
@@ -1,5 +1,6 @@
package timeflow.app;
+import java.net.URL;
import timeflow.app.ui.*;
import timeflow.app.actions.*;
import timeflow.app.ui.filter.*;
@@ -696,7 +697,9 @@
System.out.println("getVisibleFiles = " + dir);
try
{
- String[] s = new File(TimeflowApp.class.getClassLoader().getResource(dir).toURI()).list();
+ final URL resource = TimeflowApp.class.getClassLoader().getResource(dir);
+ System.out.println("resource = " + resource);
+ String[] s = new File(resource.toURI()).list();
ArrayList<String> real = new ArrayList<String>();
for (int i = 0; i < s.length; i++)
{
@@ -709,6 +712,7 @@
}
catch (Exception e)
{
+ e.printStackTrace();
return new String[0];
}
}
--
Gitblit v1.6.2