예제 #1
0
        public async Task <bool> RenameFile(string id, string filename)
        {
            var client = await EnsureClientCreated();

            IFileSystemItem fileSystemItem = await client.Files.GetByIdAsync(id);

            fileSystemItem.Name = filename;
            await fileSystemItem.UpdateAsync();

            return(true);
        }