Пример #1
0
 internal static extern byte tsk_fs_dir_walk(FileSystemHandle fs, long directory_address, DirWalkFlags walk_flags, DirWalkDelegate callback, IntPtr a_ptr);
Пример #2
0
        /// <summary>
        /// Walks the file names in a directory and obtain the details of the files via a callback.
        /// </summary>
        /// <param name="callback">
        /// Callback function that is called for each file name.
        /// </param>
        /// <param name="flags">
        /// Flags used during analysis.
        /// </param>
        /// <returns>
        /// Whether the operation is successful or not.
        /// </returns>
        public bool WalkDirectories(DirWalkDelegate callback, DirWalkFlags flags = DirWalkFlags.Recurse)
        {
            var ret = NativeMethods.tsk_fs_dir_walk(this._handle, this._struct.root_inum, flags, callback, IntPtr.Zero);

            return(ret == 0);
        }