You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a user of mine reported that he has an issue with displaying images and I debugged and found out that SMP's utils.Glob
can not parse the file path if the directory contains a semicolon ;
His directory example: [DSD64_1x] - Aaron Neville - Warm Your Heart [A&M] (1991;2017)
Code to reproduce:
function testGlobWithSemicolon() {
const testPaths = [
'C:\\Users\\Administrator\\Desktop\\Music\\[DSD64_1x] - Aaron Neville - Warm Your Heart [A&M] (1991;2017)\\cd.png'
];
testPaths.forEach(path => {
console.log(`Testing path: ${path}`);
// Ensure the file exists
if (utils.IsFile(path)) {
console.log(`File exists: ${path}`);
} else {
console.log(`File does not exist: ${path}`);
}
// Attempt to list the file using a wildcard
const results = utils.Glob(path.replace('cd.png', '*'), FileAttributes.Directory);
if (results.length > 0) {
console.log('utils.Glob found the following entries:');
results.forEach(result => console.log(result));
} else {
console.log('utils.Glob did not find any entries.');
}
});
}
testGlobWithSemicolon();
-TT
The text was updated successfully, but these errors were encountered:
TT-ReBORN
added a commit
to TT-ReBORN/Georgia-ReBORN
that referenced
this issue
Oct 20, 2024
Hi @TheQwertiest,
a user of mine reported that he has an issue with displaying images and I debugged and found out that SMP's
utils.Glob
can not parse the file path if the directory contains a semicolon
;
His directory example:
[DSD64_1x] - Aaron Neville - Warm Your Heart [A&M] (1991;2017)
Code to reproduce:
-TT
The text was updated successfully, but these errors were encountered: