* Web.csproj:
* YavscModel.csproj: * Basket.cs: * Basket.aspx: * Commande.cs: * BasketController.cs: * CommandSet.cs: * NpgsqlWorkflow.csproj: * FileSystemController.cs: * FrontOfficeController.cs: * NpgsqlContentProvider.cs: implementing a basket * ProjectInfo.cs: * ITCPNpgsqlProvider.cs: * CommandStatus.cs: * NpgsqlBlogProvider.cs: xml doc * CalendarApi.cs: document formatting * FileSystemManager.cs: refactoring * WorkFlowManager.cs: * IContentProvider.cs: provides a basket * WebFileInfoCollection.cs: not used
This commit is contained in:
parent
b505ad90e7
commit
75fe032822
19 changed files with 388 additions and 127 deletions
|
|
@ -56,9 +56,9 @@ namespace Yavsc.Model.FileSystem
|
|||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Yavsc.Model.FileSystem.FileSystemManager"/> class.
|
||||
/// </summary>
|
||||
public FileSystemManager (string usersDirectory="~/files", char dirSep = '/')
|
||||
public FileSystemManager (string rootDirectory="~/files", char dirSep = '/')
|
||||
{
|
||||
prefix = usersDirectory;
|
||||
prefix = rootDirectory;
|
||||
DirectorySeparator = dirSep;
|
||||
|
||||
}
|
||||
|
|
@ -150,8 +150,19 @@ namespace Yavsc.Model.FileSystem
|
|||
}
|
||||
DirectoryInfo di = new DirectoryInfo (path);
|
||||
FileInfoCollection res = new FileInfoCollection (di.GetFiles ());
|
||||
// TODO define an Owner
|
||||
return res;
|
||||
}
|
||||
/// <summary>
|
||||
/// Files the info.
|
||||
/// </summary>
|
||||
/// <returns>The info.</returns>
|
||||
/// <param name="id">Identifier.</param>
|
||||
public FileInfo FileInfo(string id)
|
||||
{
|
||||
checkSubDir (id);
|
||||
return new FileInfo(Path.Combine (Prefix, id));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue