Пример #1
0
        /// <summary>
        /// Renames the file
        /// </summary>
        /// <param name="newName">New file name</param>
        /// <returns></returns>
        public async Task <IFile> RenameAsync(string newName)
        {
            if (InternalFile is null || string.IsNullOrEmpty(newName))
            {
                return(this);
            }
            await InternalFile.RenameAsync(newName).ConfigureAwait(false);

            return(this);
        }