mirror of
https://github.com/terorie/od-database-crawler.git
synced 2025-04-18 18:06:45 +00:00
33 lines
393 B
Go
33 lines
393 B
Go
package main
|
|
|
|
/*import (
|
|
"net/http"
|
|
"path"
|
|
"time"
|
|
)
|
|
|
|
const (
|
|
maxRetries = 2
|
|
timeout = 25 * time.Second
|
|
)
|
|
|
|
type HttpDirectory struct {
|
|
|
|
}
|
|
|
|
func (h *HttpDirectory) ListDir(filePath string) {
|
|
dir := path.Base(filePath)
|
|
|
|
}
|
|
|
|
func requestFile(url string, baseUrl string) (err error) {
|
|
retries := maxRetries
|
|
for retries > 0 {
|
|
res, err := http.Head(url)
|
|
if err != nil { return }
|
|
|
|
}
|
|
}
|
|
|
|
*/
|