From 92d384573e6932023afdb89b9e7a38e40be573a7 Mon Sep 17 00:00:00 2001 From: Jonathan Bernard Date: Thu, 8 Sep 2016 14:18:20 -0500 Subject: [PATCH] Rescan the media library before reporting on absent files. --- build.gradle | 2 +- .../com/jdbernard/wdiwtlt/cli/CommandLineInterface.groovy | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index b436a95..c53b1aa 100644 --- a/build.gradle +++ b/build.gradle @@ -12,7 +12,7 @@ allprojects { } group = 'com.jdbernard' - version = '0.1.1' + version = '0.1.2' repositories { mavenLocal() diff --git a/cli/src/main/groovy/com/jdbernard/wdiwtlt/cli/CommandLineInterface.groovy b/cli/src/main/groovy/com/jdbernard/wdiwtlt/cli/CommandLineInterface.groovy index a1aeb13..1172ea4 100644 --- a/cli/src/main/groovy/com/jdbernard/wdiwtlt/cli/CommandLineInterface.groovy +++ b/cli/src/main/groovy/com/jdbernard/wdiwtlt/cli/CommandLineInterface.groovy @@ -28,7 +28,7 @@ import static com.jdbernard.wdiwtlt.cli.CliErr.* public class CommandLineInterface { - public static final VERSION = "0.1.1" + public static final VERSION = "0.1.2" public static final def DOC = """\ wdiwtlt v$VERSION @@ -551,6 +551,7 @@ Configuration: [(idKeyFor(selectionClass)): it.id]) }.findAll() case ~/absent files/: + scanMediaLibrary() return library.getMediaFilesWhere(presentLocally: false) case ~/files tagged( as){0,1}((\s[^\s]+)+)/: