开发者

C#'s System.IO.Path functionality in Javascript

开发者 https://www.devze.com 2023-02-24 04:18 出处:网络
Does anybody knows for an implementation of Path manipulations functions in JS similar to C# System.IO.Path has?

Does anybody knows for an implementation of Path manipulations functions in JS similar to C# System.IO.Path has?

I'm basically looking for Combine(string,string) and GetDirectoryName(string) functions.

Note: I don't want to manipulate the FileSystem (I can do it using FSO). I want sort of string manipulation implementation aimed to Paths.

Any help/link will be开发者_开发百科 very appreciated.

Thanks, Guy


Javascript doesn't usually have access to the file system, so you are not likely to find this functionality without writing it yourself. I'm not sure how localization would work either... would you use a / or a \ for the directory separator?

0

精彩评论

暂无评论...
验证码 换一张
取 消