Closed khoroshevskyi closed 2 years ago
do you have access to the file size of the file so you can filter before downloading?
do you have access to the file size of the file so you can filter before downloading?
Yes, for each ".tar" file in the same directory is additional file "filelist.txt" ,which contains the information about files in it. e.g. for the Series GSE152804 all the files and "filelist.txt" can be find here:
excellent. you can make it understand a parameter in gigabytes that would be useful. Or you could parse "GB" and "MB" and have them pass as "5 GB" or "500 MB"
MB and GB possibility great idea! However there is one other problem. There are also file that could be not in .tar archive and therefore they are not listed in the "fileslist". I see only one solution in this case: 1) Download index.html file (information about repository) 2) Retrieve size of the files from html document
I would say don't bother parsing HTML. If the data is not readily available, let's not do this, it's a small benefit.
Added --filter-size argument: Fixed #50
Added --filter-size argument: Fixed #50
Are you referring to the right issue here?
Was fixed in the v0.8.0
Possibility of filtering processed files by size before downloading can be very useful option in geofetch.