1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-23 08:07:26 +08:00
osu-lazer/osu.Game/IO/FileInfo.cs

21 lines
587 B
C#
Raw Normal View History

// 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;
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; }
public string Hash { get; set; }
public string StoragePath => Path.Combine(Hash.Remove(1), Hash.Remove(2), Hash);
public int ReferenceCount { get; set; }
}
}