osu/osu.Game/IO/FileInfo.cs

21 lines
587 B
C#
Raw Normal View History

2018-01-05 11:21:19 +00:00
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
2017-10-04 19:52:12 +00:00
using System.ComponentModel.DataAnnotations.Schema;
using System.IO;
namespace osu.Game.IO
{
public class FileInfo
{
2017-10-05 21:23:26 +00:00
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
2017-10-14 05:28:25 +00:00
public int ID { get; set; }
public string Hash { get; set; }
public string StoragePath => Path.Combine(Hash.Remove(1), Hash.Remove(2), Hash);
public int ReferenceCount { get; set; }
}
}