forked from cake-build/cake
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIDirectory.cs
More file actions
46 lines (41 loc) · 1.6 KB
/
IDirectory.cs
File metadata and controls
46 lines (41 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections.Generic;
namespace Cake.Core.IO
{
/// <summary>
/// Represents a directory.
/// </summary>
public interface IDirectory : IFileSystemInfo
{
/// <summary>
/// Gets the path to the directory.
/// </summary>
/// <value>The path.</value>
new DirectoryPath Path { get; }
/// <summary>
/// Creates the directory.
/// </summary>
void Create();
/// <summary>
/// Deletes the directory.
/// </summary>
/// <param name="recursive">Will perform a recursive delete if set to <c>true</c>.</param>
void Delete(bool recursive);
/// <summary>
/// Gets directories matching the specified filter and scope.
/// </summary>
/// <param name="filter">The filter.</param>
/// <param name="scope">The search scope.</param>
/// <returns>Directories matching the filter and scope.</returns>
IEnumerable<IDirectory> GetDirectories(string filter, SearchScope scope);
/// <summary>
/// Gets files matching the specified filter and scope.
/// </summary>
/// <param name="filter">The filter.</param>
/// <param name="scope">The search scope.</param>
/// <returns>Files matching the specified filter and scope.</returns>
IEnumerable<IFile> GetFiles(string filter, SearchScope scope);
}
}