0
왜 작동하지 않습니까? 그것을 올바르게하는 방법?nodejs에서 와일드 카드 사용 방법 child_process.exec
var exec = require("child_process").exec;
exec("ls data/tile_0_{0..63}.jpg", function(error, stdout, stderr){
console.log('stdout: ' + stdout);
console.log('stderr: ' + stderr)}
);
// stdout:
// stderr: ls: cannot access data/tile_0_{0..63}.jpg: No such file or directory
bash는 터미널에서이 tile_0_0.jpg, tile_0_1.jpg, etc.
노드에서 실행이 예상대로 작동하지만 내가 원하는 일을하지 않는
처럼 모든 파일을 나열합니다.
ls data/tile_61_[0-9].jpg
내가 왜하지 않는 14