Git.Core.ObjectStore.CreateObjectParent C# (CSharp) Method

CreateObjectParent() private method

Create a object first parent... e.g. f4/47d5573b70cf042d036bfa62f55cdefccd9909 f4 is the parent we create in this method
private CreateObjectParent ( SHA1 id ) : void
id SHA1 /// A ///
return void
        private void CreateObjectParent(SHA1 id)
        {
            string fullPath = null;

            if (!path.EndsWith ("/"))
                fullPath = path + "/" + id.ToHexString (0, 1);
            else
                fullPath = path + id.ToHexString (0, 1);

            if (!Directory.Exists (fullPath))
                Directory.CreateDirectory (fullPath);
        }