Bari.Plugins.FSRepository.Model.LocalFileSystemRepositoryAccess.GetDirectory C# (CSharp) Method

GetDirectory() public method

Gets the directory for a given path (the path's file name part is not used)
public GetDirectory ( string path ) : IFileSystemDirectory
path string Path to the file
return IFileSystemDirectory
        public IFileSystemDirectory GetDirectory(string path)
        {
            var dir = Path.GetDirectoryName(path);

            if (Path.IsPathRooted(path))
                return new LocalFileSystemDirectory(dir);
            else
                return suiteRoot.GetChildDirectory(dir);
        }