using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
namespace IReaper.PathManager{
class MonthPathManager:IManager
{
#region IManager
/// <summary>
/// : "///"
/// </summary>
/// <param name="cData"></param>
/// <returns></returns>
public string GetRelativePath(IReaper.FileData.CourseFileData cData)
{
//cData
if(cData == null)
return null;
//
DateTime time = cData.Owner.Time;
//
string month = time.ToString("y");
string tpPath = Path.Combine(month,cData.Owner.Headline);
return tpPath;
}
public PathPolicyType Policy
{
get { return PathPolicyType.Month; }
}
#endregion
}
}
|