on modern linux, media has directory for every user
[meviz.git] / src / main / java / eu / svjatoslav / meviz / grabmemcard / Main.java
index ca78c4a..99dfe0f 100755 (executable)
@@ -1,7 +1,7 @@
 /*
  * Meviz - Various tools collection to work with multimedia.
  * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
- * 
+ *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of version 2 of the GNU General Public License
  * as published by the Free Software Foundation.
@@ -91,9 +91,7 @@ public class Main implements Module {
 
                final String userName = System.getProperty("user.name");
 
-               // final File file = new File("/media/" + userName + "/");
-
-               final File file = new File("/media/");
+               final File file = new File("/media/" + userName + "/");
 
                for (final File insertedDisk : file.listFiles()) {
                        final File[] diskVideos = getDiskVideos(insertedDisk);