Ejemplo n.º 1
0
        long getDirectoryCompleteSize()
        {
            long m = 0;

            foreach (var f in ClosedDirectoryInfo.GetFiles("*", SearchOption.AllDirectories))
            {
                m += f.Length;
            }

            return(m);
        }
Ejemplo n.º 2
0
        bool canAccessFolder()
        {
            try
            {
                var m = ClosedDirectoryInfo.GetDirectories();
                var n = ClosedDirectoryInfo.GetFiles();

                return(true);
            }
            catch
            {
                return(false);
            }
        }