I don’t know if there is any built in functionality for this, but it’s pretty straight forward to get the path.
path = path.substring(0,path.lastIndexOf("\\")+1);
Related Contents:
- How do I create a GUID / UUID?
- How do I make the first letter of a string uppercase in JavaScript?
- Call child method from parent
- How do I programmatically set the value of a select box element using JavaScript?
- In what situations would AJAX long/short polling be preferred over HTML5 WebSockets?
- What is the difference between object keys with quotes and without quotes?
- Replace a string in a file with nodejs
- How does one capture a Mac’s command key via JavaScript?
- How to jump to top of browser page
- How to detect Ctrl+V, Ctrl+C using JavaScript?
- How to extract a string using JavaScript Regex?
- Is creating JS object with Object.create(null) the same as {}?
- Dynamically update values of a chartjs chart
- Vue.js getting an element within a component
- CORS: credentials mode is ‘include’
- What does the third parameter (false) indicate in document.addEventListener(“deviceready”,OnDeviceReady,false); [duplicate]
- React display line breaks from saved textarea
- Why escape_javascript before rendering a partial?
- How to align text input correctly in react native?
- Can mathematical operators *, /, +, -, ^ be used to convert a non-zero number to 1?
- JS – get image width and height from the base64 code
- window.performance.now() equivalent in nodejs?
- Programmatically open new pages on Tabs
- How to give a Blob uploaded as FormData a file name?
- new Date() works differently in Chrome and Firefox
- JavaScript window.scroll vs. window.scrollTo?
- Recommended JavaScript HTML template library for JQuery? [closed]
- How to sort a map by value in JavaScript?
- how to hide blinking cursor in input text?
- Alert for unsaved changes in form
- SecurityError: The operation is insecure – window.history.pushState()
- Why is document.all falsy?
- How to choose the Redux state shape for an app with list/detail views and pagination?
- Access a variable of iframe from parent
- Rails: Internationalization of Javascript Strings?
- JavaScript backslash (\) in variables is causing an error
- onclick event function in JavaScript
- time delayed redirect?
- Strange code in jQuery sources: var !== var ? x : y;
- How to prevent iOS keyboard from pushing the view off screen with CSS or JS
- Event Handler Namespace in Vanilla JavaScript
- how to convert a string to a Unix timestamp in javascript?
- What is difference between ‘data:’ and ‘data()’ in Vue.js?
- How to stringify event object?
- Swagger..Unable to render this definition The provided definition does not specify a valid version field
- How to getting browser current locale preference using javascript?
- is there any builtin javascript string hash function in newest browsers?
- How to detect key pressed in TypeScript?
- What are non-word boundary in regex (\B), compared to word-boundary?
- Adding click event for a button created dynamically using jQuery [duplicate]