This main issue that this PR aims to address is to avoid having to write client code like civis.io.file_to_civis('foobar.txt', 'foobar.txt'), where the second arg name is obligatory currently (as of v1.11.0) but seems unnecessary. I think it'd be perfectly reasonable to allow code like civis.io.file_to_civis('foobar.txt') where name can internally be inferred from the basename of the given file path -- this is what this PR implements.
This main issue that this PR aims to address is to avoid having to write client code like
civis.io.file_to_civis('foobar.txt', 'foobar.txt')
, where the second argname
is obligatory currently (as of v1.11.0) but seems unnecessary. I think it'd be perfectly reasonable to allow code likecivis.io.file_to_civis('foobar.txt')
wherename
can internally be inferred from the basename of the given file path -- this is what this PR implements.