PutioFS.Windows.WinMounter.GetCacheSize C# (CSharp) Method

GetCacheSize() private method

private GetCacheSize ( ) : long
return long
        private long GetCacheSize()
        {
            if (!Directory.Exists(Constants.LocalStoragePath))
                return 0;

            long size = 0;
            foreach (DirectoryInfo di in new DirectoryInfo(Constants.LocalStoragePath).GetDirectories())
            {
                foreach (FileInfo fi in di.GetFiles("*.pcd"))
                {
                    size += fi.Length;
                }
            }
            return size;
        }