getting some interface to fs
This commit is contained in:
parent
f04a316860
commit
77128e1a7e
11 changed files with 144 additions and 36 deletions
|
|
@ -28,7 +28,7 @@ namespace Yavsc.ViewModels.UserFiles
|
|||
if (string.IsNullOrWhiteSpace(username))
|
||||
throw new NotSupportedException("No user name, no user dir.");
|
||||
UserName = username;
|
||||
var finalPath = username;
|
||||
var finalPath = path == null ? username : Path.Combine(username, path);
|
||||
if (!finalPath.IsValidYavscPath())
|
||||
throw new InvalidOperationException(
|
||||
$"File name contains invalid chars ({finalPath})");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue