X-Git-Url: https://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=tim%2Fprune%2Fdata%2FMediaObject.java;h=478618e4a5ac330795df9684600c4a54f3452e9c;hp=e028f4ab4ddc7f1050f0c9e2e3792da90c3e6c41;hb=4d5796d02a15808311c09448d79e6e7d1de9d636;hpb=f1b92378a792131ac8fb33a869405851d5b2d1f7 diff --git a/tim/prune/data/MediaObject.java b/tim/prune/data/MediaObject.java index e028f4a..478618e 100644 --- a/tim/prune/data/MediaObject.java +++ b/tim/prune/data/MediaObject.java @@ -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) */