Commit 994c0436 authored by jy1263's avatar jy1263

added dot

parent dc1a4e2c
...@@ -109,7 +109,7 @@ class SRXD { ...@@ -109,7 +109,7 @@ class SRXD {
} }
getFileExtension(fileName, filePath){ getFileExtension(fileName, filePath){
let filePathJoined = path.join(filePath, fileName); let filePathJoined = path.join(filePath, fileName);
let files = glob.sync(filePathJoined+"*"); let files = glob.sync(filePathJoined+".*");
if (files[0] != undefined){return [path.parse(files[0]).base];} if (files[0] != undefined){return [path.parse(files[0]).base];}
else {return [];} else {return [];}
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment