mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-17 06:23:03 +03:00
Unwrapped MoveDirectory, DirectoryExists, FileExists & removed MoveFile
This commit is contained in:
@@ -137,14 +137,14 @@ namespace MediaBrowser.Api
|
||||
{
|
||||
if (request.IsFile.Value)
|
||||
{
|
||||
if (!_fileSystem.FileExists(request.Path))
|
||||
if (!File.Exists(request.Path))
|
||||
{
|
||||
throw new FileNotFoundException("File not found", request.Path);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!_fileSystem.DirectoryExists(request.Path))
|
||||
if (Directory.Exists(request.Path))
|
||||
{
|
||||
throw new FileNotFoundException("File not found", request.Path);
|
||||
}
|
||||
@@ -153,7 +153,7 @@ namespace MediaBrowser.Api
|
||||
|
||||
else
|
||||
{
|
||||
if (!_fileSystem.FileExists(request.Path) && !_fileSystem.DirectoryExists(request.Path))
|
||||
if (!File.Exists(request.Path) && Directory.Exists(request.Path))
|
||||
{
|
||||
throw new FileNotFoundException("Path not found", request.Path);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user