update file system methods

This commit is contained in:
Luke
2015-09-13 17:32:02 -04:00
parent 0f743205c4
commit 14de062681
129 changed files with 482 additions and 872 deletions

View File

@@ -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
{

View File

@@ -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";
}