Beispiel #1
0
        public Task <bool> RenameFileAsync(string path, string newPath, CancellationToken cancellationToken = default)
        {
            if (String.IsNullOrEmpty(path))
            {
                throw new ArgumentNullException(nameof(path));
            }
            if (String.IsNullOrEmpty(newPath))
            {
                throw new ArgumentNullException(nameof(newPath));
            }

            return(UnscopedStorage.RenameFileAsync(String.Concat(_pathPrefix, path), String.Concat(_pathPrefix, newPath), cancellationToken));
        }
Beispiel #2
0
 public Task <bool> RenameFileAsync(string path, string newpath, CancellationToken cancellationToken = new CancellationToken())
 {
     return(UnscopedStorage.RenameFileAsync(String.Concat(_pathPrefix, path), String.Concat(_pathPrefix, newpath), cancellationToken));
 }