use subdir for addurl when it creates multiple files
The --file parameter specifies the subdir in this mode.
This commit is contained in:
parent
a941af0fe2
commit
bce7e0dd96
3 changed files with 22 additions and 25 deletions
|
@ -11,9 +11,8 @@ import Utility.Url
|
|||
|
||||
data UrlContents
|
||||
-- An URL contains a file, whose size may be known.
|
||||
-- A default filename will be provided, and can be overridded
|
||||
-- or built on.
|
||||
= UrlContents (Maybe Integer) (FilePath -> FilePath)
|
||||
-- There might be a nicer filename to use.
|
||||
= UrlContents (Maybe Integer) (Maybe FilePath)
|
||||
-- Sometimes an URL points to multiple files, each accessible
|
||||
-- by their own URL.
|
||||
| UrlNested [(URLString, UrlContents)]
|
||||
| UrlMulti [(URLString, Maybe Integer, FilePath)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue