/// <summary> /// Gets file handles to files on the brick. Use with great care upon deleting!! /// </summary> /// <param name="brickDirectoryPath">The relative path, must start with ../ and end with /</param> /// <returns></returns> public static async Task <File[]> GetFiles(string brickDirectoryPath) { DirectoryContent content = await SystemMethods.GetDirectoryContent(Brick.Socket, brickDirectoryPath); return(content.Files); }
/// <summary> /// Lists all files and directories for given path /// </summary> /// <param name="brickDirectoryPath">The relative path, must start with ../ and end with /</param> /// <returns>Files and directories as <c>string[]</c></returns> public static async Task <DirectoryContent> GetDirectoryContent(string brickDirectoryPath) { return(await SystemMethods.GetDirectoryContent(Brick.Socket, brickDirectoryPath)); }