예제 #1
0
        /// <summary>
        /// Moves the file to another directory
        /// </summary>
        /// <param name="directory">Directory to move the file to</param>
        /// <returns></returns>
        public async Task <IFile> MoveToAsync(IDirectory directory)
        {
            if (InternalFile is null || directory is null)
            {
                return(this);
            }
            await InternalFile.MoveToAsync(directory).ConfigureAwait(false);

            return(this);
        }