FlineDev / CSVImporter

Import CSV files line by line with ease

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Would like to see init with NSURL

phoney opened this issue · comments

Apple is recommending that files be referenced using fileURLs. It would be helpful to have an init method that takes a fileURL. Something like this, or it could also validate that the URL is a fileURL.

init(url:NSURL, delimiter: String = ",") {
   self.init(path: url.path!, delimiter:delimiter)
}

Hi @phoney, thank you very much for your issues and comments. I'd happily accept those suggested changes via a pull request, if you don't mind. You are right on all points but my time is very limited as of now, so I'd be grateful for your help.

OK, I'll see what I can do.

This was implemented in and merged with #5.