facultyai / facultyai/faculty

Use filename if not provided when doing dataset copying

Aperta
#158 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
Python
Stelle
16
Fork
5
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

A file put with `datasets.put` of a single file needs explicit filename in the path, but should be able to use the existing file name for smarter uploads.

Eg. a call like
```
dataset.put("/project/data.csv", "/somefolder/")
```
results in `/somefolder/` being created (if it doesn't exists), but no file uploaded there. I think if done smartly that above should be equivalent to explicitly writing
```
dataset.put("/project/data.csv", "/somefolder/data.csv")
```
which is just getting the current file name and adding to the end of the path, if not provided.

If that auto filename is not desirable for some reason then the upload should at least error out, otherwise confusing that things succeed and nothing is copied.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.