I have an array of URLs(Local Files).How can I get the filename without the extension.
So far I know how to get the filename with the extension.Is there an inbuilt function to do this.Something similar to https://msdn.microsoft.com/en-us/library/system.io.path.getfilenamewithoutextension(v=vs.110).aspx
var file_name = NSURL(fileURLWithPath: path_to_file).lastPathComponent!