Ejemplo n.º 1
0
        public int SetEndOfFile(string filename, long length, DokanFileInfo info)
        {
            CacheEntry entry = cache_.Lookup(filename);

            entry.RemoveGetFileInfoCache();

            return(ope_.SetEndOfFile(filename, length, info));
        }
Ejemplo n.º 2
0
        public int SetEndOfFileProxy(
            IntPtr rawFileName,
            long rawByteOffset,
            ref DOKAN_FILE_INFO rawFileInfo)
        {
            try
            {
                string file = GetFileName(rawFileName);

                return(operations_.SetEndOfFile(file, rawByteOffset, GetFileInfo(ref rawFileInfo)));
            }
            catch (Exception e)
            {
                Console.Error.WriteLine(e.ToString());
                return(-1);
            }
        }