mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-19 12:44:19 +01:00
update file system methods
This commit is contained in:
@@ -56,7 +56,7 @@ namespace MediaBrowser.Server.Implementations.Playlists
|
||||
{
|
||||
var path = Path.Combine(_appPaths.DataPath, "playlists");
|
||||
|
||||
Directory.CreateDirectory(path);
|
||||
_fileSystem.CreateDirectory(path);
|
||||
|
||||
return new PlaylistsFolder
|
||||
{
|
||||
|
||||
@@ -110,7 +110,7 @@ namespace MediaBrowser.Server.Implementations.Playlists
|
||||
|
||||
try
|
||||
{
|
||||
Directory.CreateDirectory(path);
|
||||
_fileSystem.CreateDirectory(path);
|
||||
|
||||
var playlist = new Playlist
|
||||
{
|
||||
@@ -150,7 +150,7 @@ namespace MediaBrowser.Server.Implementations.Playlists
|
||||
|
||||
private string GetTargetPath(string path)
|
||||
{
|
||||
while (Directory.Exists(path))
|
||||
while (_fileSystem.DirectoryExists(path))
|
||||
{
|
||||
path += "1";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user