If I am in a folder which has child folders and am trying to use only the dot operator ('.') to represent the current directory for the path but am unasble to do that. I get back empty strings for all the 4 outputs:
Reproduction Steps:
[pathstr, name, ext, versn] = fileparts('.') pathstr = '' name = Empty string: 1-by-0 ext = . versn = ''
I am buildig an application for my clients where I am not sure about the user input and believe it would be great if the dot operator can be used to represent the current directory and I could get back the name and path of the current directory when using the above command
Best Answer