コード例 #1
0
        /// <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);
        }
コード例 #2
0
 /// <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));
 }