/// <summary> /// Add BytesSize of all parent directories. /// </summary> /// <param name="size"></param> private void AddBytesSize(long size) { Interlocked.Add(ref _bytesSize, size); if (Parent != null) { Parent.AddBytesSize(size); } }