- collection have first links (started from ed2k. could be compete hashset and aich-hashset).
- then go md commands (create subdir)
- then cr commands (create zero-size file)
- then cp commands (copy file from collection)
- last go mv commands (move file from collection)
They should be processed in the same order.
Example:
---
ed2k://|file|VIDEO_TS.IFO|22528|57BFAF45723C1D6E601B84A60888DC53/ ed2k://|file|VTS_01_0.VOB|497664|3191D102C7D90BDF9637A80881243E8A/ md . AUDIO_TS md . VIDEO_TS cp 0 3 VIDEO_TS.BUP mv 0 3 mv 1 3
---
As result correct dvd structure will be created. VIDEO_TS.IFO will be copied to VIDEO_TS/VIDEO_TS.BUP. All two files go to VIDEO_TS folder.
another:
---
ed2k://|file|VIDEO_TS.IFO|22528|57BFAF45723C1D6E601B84A60888DC53/ ed2k://|file|VTS_01_0.VOB|497664|3191D102C7D90BDF9637A80881243E8A/ md . AUDIO_TS md . VIDEO_TS md 3 cool_subdir cp 0 4 VIDEO_TS.BUP
---
Structure is:
AUDIO_TS
VIDEO_TS/cool_subdir
VIDEO_TS.IFO will be copied to VIDEO_TS/cool_subdir/VIDEO_TS.BUP
All two files from collection stay in downloaded folder.
Lines are counted from zero. Lines could be pointed only above current.
md has two parameters. First is either '.' or line number of md line. Second is a subdir name (no "..", '/' or '\\' symbols there). One subdir at a time.
cr has two parameters. First is either '.' or line number of md line. Second is a filename.
cp has three parameters. First is a line number of ed2k link. Second is either '.' or a line number of md command. Third is a new filename.
mv has two parameters. First is a line number of ed2k link. Second is a line number of md command.
Any other suggestions or remarks?
p. p. s. mentioned links are private and aren't shared.