src/Library/NetPro.TypeFinder/INetProFileProvider.cs
(开头部分) 14KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using Microsoft.Extensions.FileProviders;
using System.Collections.Generic;
using System.Text;
namespace System.NetPro
{
/// <summary>
/// 文件操作抽象类
/// </summary>
public interface INetProFileProvider : IFileProvider
{
/// <summary>
/// 文件路径合并
/// </summary>
/// <param name="paths">An array of parts of the path</param>
/// <returns>The combined paths</returns>
string Combine(params string[] paths);
/// <summary>
/// 创建一个目录(文件夹)
/// </summary>
/// <param name="path">文件夹路径</param>
void CreateDirectory(string path);
/// <summary>
///新增一个文件.如果文件已存在则跳过
/// </summary>
/// <param name="path">文件完整路径</param>
void CreateFile(string path);
/// <summary>
/// 删除目录.
/// </summary>
/// <param name="path">Directory path</param>
void DeleteDirectory(string path);
/// <summary>
/// 删除文件
/// </summary>
/// <param name="filePath">The name of the file to be deleted. Wildcard characters are not supported</param>
void DeleteFile(string filePath);
/// <summary>
/// Determines whether the given path refers to an existing directory on disk
/// </summary>
/// <param name="path">The path to test</param>
/// <returns>
/// true if path refers to an existing directory; false if the directory does not exist or an error occurs when
/// trying to determine if the specified file exists
/// </returns>
bool DirectoryExists(string path);
/// <summary>
/// 文件夹移动
/// </summary>
/// <param name="sourceDirName">原目录路径</param>
/// <param name="destDirName">
/// The path to the new location for sourceDirName. If sourceDirName is a file, then destDirName
/// must also be a file name
/// </param>
后面还有 251 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。