2018-01-05 11:21:19 +00:00
|
|
|
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
2017-07-26 11:22:02 +00:00
|
|
|
|
// 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;
|
2017-07-26 11:22:02 +00:00
|
|
|
|
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; }
|
2017-07-26 11:22:02 +00:00
|
|
|
|
|
|
|
|
|
public string Hash { get; set; }
|
|
|
|
|
|
|
|
|
|
public string StoragePath => Path.Combine(Hash.Remove(1), Hash.Remove(2), Hash);
|
|
|
|
|
|
|
|
|
|
public int ReferenceCount { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|