Package org.sleuthkit.datamodel

Examples of org.sleuthkit.datamodel.Directory


        final Content content = this.getLookup().lookup(Content.class);
        if (content != null) {
            actions.addAll(DirectoryTreeFilterNode.getDetailActions(content));

            //extract dir action
            Directory dir = this.getLookup().lookup(Directory.class);
            if (dir != null) {
                actions.add(ExtractAction.getInstance());
            }

            // file search action
View Full Code Here


     *
     * @param node
     * @return whether node is a leaf
     */
    private static boolean isLeafDirectory(DirectoryNode node) {
        Directory dir = node.getLookup().lookup(Directory.class);
        boolean ret = true;
        try {
            for (Content c : dir.getChildren()) {
                if (c instanceof Directory && (!((Directory) c).getName().equals(".")
                        && !((Directory) c).getName().equals(".."))) {
                    ret = false;
                    break;
                } else if (c.hasChildren()) {
View Full Code Here

            if (c instanceof VolumeSystem) {
                children.addAll(getDisplayChildren(c));
            } else if (c instanceof FileSystem) {
                children.addAll(getDisplayChildren(c));
            } else if (c instanceof Directory) {
                Directory dir = (Directory) c;
                /* For root directories, we want to return their contents.
                 * Special case though for '.' and '..' entries, because they should
                 * not have children (and in fact don't in the DB).  Other drs
                 * get treated as files and added as is. */
                if ((dir.isRoot()) && (dir.getName().equals(".") == false)
                        && (dir.getName().equals("..") == false)) {
                    children.addAll(getDisplayChildren(dir));
                } else {
                    children.add(c);
                }
            } else {
View Full Code Here

TOP

Related Classes of org.sleuthkit.datamodel.Directory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.