public Task ImportFile(VirtualFile source, string targetDirectoryPath, Action <ProgressArgs> progressCallback, CancellationToken cancellationToken) { var targetDirectory = getDirectoryFromPath(targetDirectoryPath); return(source.CopyTo(targetDirectory, progressCallback, cancellationToken)); }