/// <summary> /// Copies the file to another directory /// </summary> /// <param name="directory">Directory to copy the file to</param> /// <param name="overwrite">Should the file overwrite another file if found</param> /// <returns>The newly created file</returns> public IFile?CopyTo(IDirectory directory, bool overwrite) { if (directory is null || !Exists) { return(null); } return(InternalFile?.CopyTo(directory, overwrite)); }
/// <summary> /// Copies the file to another directory /// </summary> /// <param name="Directory">Directory to copy the file to</param> /// <param name="Overwrite">Should the file overwrite another file if found</param> /// <returns>The newly created file</returns> public IFile CopyTo(IDirectory Directory, bool Overwrite) { if (Directory == null || !Exists) { return(null); } return(InternalFile.CopyTo(Directory, Overwrite)); }