]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - tim/prune/data/MediaObject.java
Version 14, October 2012
[GpsPrune.git] / tim / prune / data / MediaObject.java
index e028f4ab4ddc7f1050f0c9e2e3792da90c3e6c41..478618e4a5ac330795df9684600c4a54f3452e9c 100644 (file)
@@ -105,6 +105,15 @@ public abstract class MediaObject
                return _url;
        }
 
+       /**
+        * @return the full path to the media, either filename or url
+        */
+       public String getFullPath()
+       {
+               if (_file != null) return _file.getAbsolutePath();
+               return getUrl();
+       }
+
        /**
         * @return true if details are valid (might not have timestamp)
         */