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