I am building a cordova windows application and get an error in accessing files and folders from my application that have path lengths greater than 260 characters because of the windows limitation. For accessing or creating new files and folders, currently, I am using Windows.Storage namespace of Windows (Runtime) API for Javascript with functions such as createFolderAsync, getFolderAsync, getFileFromPathAsync etc.
Recently, I heard that the latest build of Windows 10 has removed the 260 character limit for paths of files/folders. (Here is the link) But this is only available in some particular Win32 functions available in C++, and to call them in my app, I need to make a Windows Runtime component in C++. (1) Is there a way, I can leverage the latest changes in the latest Windows 10 build (version 1607) to directly create/access files and folders with path lengths > 260 chars? (2) Is this limitation still there in the javascript Windows libraries and do we really have no option but to involve win32 C++ APIs to do away with this problem? (3) Is windows considering to remove this limitation from all other libraries as well in the future?
Thanks in advance!
来源:https://stackoverflow.com/questions/40083284/resolving-long-path-260-char-limitation-for-accessing-files-folders-in-latest