Package org.sleuthkit.datamodel

Examples of org.sleuthkit.datamodel.VirtualDirectory


            rootsToAdd.add(localFile);
        }

        CaseDbTransaction trans = tskCase.beginTransaction();
        // make a virtual top-level directory for this set of files/dirs
        final VirtualDirectory fileSetRootDir = addLocalFileSetRootDir(trans);

        try {
            // recursively add each item in the set
            for (java.io.File localRootToAdd : rootsToAdd) {
                AbstractFile localFileAdded = addLocalDirInt(trans, fileSetRootDir, localRootToAdd, addProgressUpdater);
View Full Code Here


     *
     * @throws TskCoreException
     */
    private VirtualDirectory addLocalFileSetRootDir(CaseDbTransaction trans) throws TskCoreException {

        VirtualDirectory created = null;

        int newFileSetCount = curNumFileSets + 1;
        final String fileSetName = VirtualDirectoryNode.LOGICAL_FILE_SET_PREFIX + newFileSetCount;

        try {
View Full Code Here

        }


        if (localFile.isDirectory()) {
            //create virtual folder (we don't have a notion of a 'local folder')
            final VirtualDirectory childVd = tskCase.addVirtualDirectory(parentVd.getId(), localFile.getName(), trans);
            if (childVd != null && addProgressUpdater != null) {
                addProgressUpdater.fileAdded(childVd);
            }
            //add children recursively
            final java.io.File[] childrenFiles = localFile.listFiles();
View Full Code Here

TOP

Related Classes of org.sleuthkit.datamodel.VirtualDirectory

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.