You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by GitBox <gi...@apache.org> on 2020/03/23 17:23:21 UTC

[GitHub] [knox] lmccay commented on a change in pull request #296: KNOX-2240 - KnoxShell Custom Command for WEBHDFS Use

lmccay commented on a change in pull request #296: KNOX-2240 - KnoxShell Custom Command for WEBHDFS Use
URL: https://github.com/apache/knox/pull/296#discussion_r396623599
 
 

 ##########
 File path: gateway-shell/src/main/java/org/apache/knox/gateway/shell/KnoxSession.java
 ##########
 @@ -661,6 +676,20 @@ public static void persistDataSources(Map<String, KnoxDataSource> datasources) {
     return sqlHistories;
   }
 
+  public static Map<String, String> loadMountPoints() throws IOException {
+    Map<String, String> mounts = null;
+    String home = System.getProperty("user.home");
+
+    File mountFile = new File(
+        home + File.separator +
+        ".knoxshell" + File.separator + KNOXMOUNTPOINTS_JSON);
 
 Review comment:
   This works fine as is.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services