mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-07-31 07:20:55 +00:00
misc: configurator: Fix user-input working directory not working
User-input working directory will not work if there's no path split at the end. This patch checks and adds if no path split at the end of working directory path. Tracked-On: #7484 Signed-off-by: Yifan Liu <yifan1.liu@intel.com>
This commit is contained in:
parent
c1528cd479
commit
0adfe7a439
@ -59,6 +59,9 @@ export default {
|
||||
if (folderPath[0] === '~') {
|
||||
folderPath = window.systemInfo.homeDir + window.systemInfo.pathSplit + folderPath.substring(1)
|
||||
}
|
||||
if (folderPath.charAt(folderPath.length - 1) !== window.systemInfo.pathSplit) {
|
||||
folderPath = folderPath + window.systemInfo.pathSplit;
|
||||
}
|
||||
this.WorkingFolder = folderPath;
|
||||
|
||||
configurator.readDir(folderPath, false)
|
||||
|
Loading…
Reference in New Issue
Block a user