I want to read directory path to convert Windows directory to Linux directory.
I tried this:
"C:\Users\503176332\dashboard\Dashboard-sans-swirl\pcm-dashboard\src\app\components\admin"
.replace(new RegExp(/\\/g), "/")
Output: "C:Users(3176332dashboardDashboard-sans-swirlpcm-dashboardsrcappcomponentsadmin"
.