Example #1
0
        protected bool CheckFreeSpace(string path, long extraSpace)
        {
            try {
                long freeSpace = Portable.GetAvailableDiskSpace(path);
                //System.Console.WriteLine("CFS {0}: {1}+{2} {3}", path, freeSpace, extraSpace, byteBuffer.Size);

                return(freeSpace + extraSpace >= byteBuffer.Size);
            }
            catch (NotImplementedException) {
                return(true);
            }
        }