From a1f0af78541492c161ed5e7694b39da94e26116e Mon Sep 17 00:00:00 2001 From: Svjatoslav Agejenko Date: Sun, 28 Dec 2014 12:54:01 +0200 Subject: [PATCH] on modern linux, media has directory for every user --- src/main/java/eu/svjatoslav/meviz/grabmemcard/Main.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/eu/svjatoslav/meviz/grabmemcard/Main.java b/src/main/java/eu/svjatoslav/meviz/grabmemcard/Main.java index ca78c4a..99dfe0f 100755 --- a/src/main/java/eu/svjatoslav/meviz/grabmemcard/Main.java +++ b/src/main/java/eu/svjatoslav/meviz/grabmemcard/Main.java @@ -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); -- 2.20.1