Merge branch 'vnext' of https://github.com/pazof/yavsc.git
This commit is contained in:
commit
a20026ccb8
4 changed files with 8 additions and 12 deletions
|
|
@ -8,6 +8,7 @@ namespace Yavsc.ViewModels.UserFiles
|
||||||
{
|
{
|
||||||
public class UserDirectoryInfo
|
public class UserDirectoryInfo
|
||||||
{
|
{
|
||||||
|
public string UserName { get; private set; }
|
||||||
public string SubPath { get; private set; }
|
public string SubPath { get; private set; }
|
||||||
public UserFileInfo [] Files {
|
public UserFileInfo [] Files {
|
||||||
get; private set;
|
get; private set;
|
||||||
|
|
@ -18,13 +19,14 @@ namespace Yavsc.ViewModels.UserFiles
|
||||||
private DirectoryInfo dInfo;
|
private DirectoryInfo dInfo;
|
||||||
public UserDirectoryInfo(string username, string path)
|
public UserDirectoryInfo(string username, string path)
|
||||||
{
|
{
|
||||||
SubPath = (path==null) ? username : username + Path.DirectorySeparatorChar + path;
|
UserName = username;
|
||||||
if ( !SubPath.IsValidPath() )
|
var finalPath = (path==null) ? username : username + Path.DirectorySeparatorChar + path;
|
||||||
|
if ( !finalPath.IsValidPath() )
|
||||||
throw new InvalidOperationException(
|
throw new InvalidOperationException(
|
||||||
$"File name contains invalid chars, using path {SubPath}");
|
$"File name contains invalid chars, using path {SubPath}");
|
||||||
|
|
||||||
dInfo = new DirectoryInfo(
|
dInfo = new DirectoryInfo(
|
||||||
Path.Combine(Startup.UserFilesDirName,SubPath));
|
Path.Combine(Startup.UserFilesDirName,finalPath));
|
||||||
Files = dInfo.GetFiles().Select
|
Files = dInfo.GetFiles().Select
|
||||||
( entry => new UserFileInfo { Name = entry.Name, Size = entry.Length,
|
( entry => new UserFileInfo { Name = entry.Name, Size = entry.Length,
|
||||||
CreationTime = entry.CreationTime, LastModified = entry.LastWriteTime }).ToArray();
|
CreationTime = entry.CreationTime, LastModified = entry.LastWriteTime }).ToArray();
|
||||||
|
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
\relax
|
|
||||||
\catcode `:\active
|
|
||||||
\catcode `;\active
|
|
||||||
\catcode `!\active
|
|
||||||
\catcode `?\active
|
|
||||||
\select@language{french}
|
|
||||||
\@writefile{toc}{\select@language{french}}
|
|
||||||
\@writefile{lof}{\select@language{french}}
|
|
||||||
\@writefile{lot}{\select@language{french}}
|
|
||||||
|
|
@ -36,6 +36,8 @@ Da road to the hell
|
||||||
à un cercle ou à un groupe, de manière temporaire ou définitive, par une plage de temps spécifié
|
à un cercle ou à un groupe, de manière temporaire ou définitive, par une plage de temps spécifié
|
||||||
ou par la validité d'une demande de devis ou une intervention en cours ou récente ou à venir
|
ou par la validité d'une demande de devis ou une intervention en cours ou récente ou à venir
|
||||||
☐ Paiement client du reste de la prestation
|
☐ Paiement client du reste de la prestation
|
||||||
|
☐ Podcasts
|
||||||
|
☐ Personalisation des blogs
|
||||||
☐ Monétarisations
|
☐ Monétarisations
|
||||||
|
|
||||||
### Réécritures prévues :
|
### Réécritures prévues :
|
||||||
|
|
|
||||||
1
paket.dependencies
Normal file
1
paket.dependencies
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
source https://www.nuget.org/api/v2
|
||||||
Loading…
Add table
Add a link
Reference in a new issue