From caef10a69b6825785ef7dcfe605e65ea5c0d4a6e Mon Sep 17 00:00:00 2001 From: Richard Cordovano Date: Mon, 18 Nov 2013 18:04:53 -0500 Subject: [PATCH] Added code to AddContentTagAction to handle current and parent directory entries --- .../org/sleuthkit/autopsy/actions/AddContentTagAction.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/actions/AddContentTagAction.java b/Core/src/org/sleuthkit/autopsy/actions/AddContentTagAction.java index 70c8f9ee3e..8760ed364f 100755 --- a/Core/src/org/sleuthkit/autopsy/actions/AddContentTagAction.java +++ b/Core/src/org/sleuthkit/autopsy/actions/AddContentTagAction.java @@ -59,7 +59,7 @@ public class AddContentTagAction extends AddTagAction { Collection selectedFiles = Utilities.actionsGlobalContext().lookupAll(AbstractFile.class); for (AbstractFile file : selectedFiles) { try { - // Handle the special cases of "." and ".." directory entries. + // Handle the special cases of current (".") and parent ("..") directory entries. if (file.getName().equals(".")) { Content parentFile = file.getParent(); if (parentFile instanceof AbstractFile) { @@ -95,5 +95,5 @@ public class AddContentTagAction extends AddTagAction { JOptionPane.showMessageDialog(null, "Unable to tag " + file.getName() + ".", "Tagging Error", JOptionPane.ERROR_MESSAGE); } } - } + } } \ No newline at end of file