browserify main.js --exclude fs > bundle.js
.К сожелению проблемма осталась.function getdirectories(path) {
content = fs.readdirSync(path);
return content;
console.log(content);
}
function ConvertMainFunc(folder_path) {
console.log("f-path in func:"+folderpath.value);
let txtlisttosend;
if (fs.existsSync("/${path2}")) {
console.log('Директория есть');
console.log("FirsIfcondition");
getdirectories(folder_path.value);
console.log(content);
txtlisttosend = "\n".join(content);
for(let f in content){
counter += 1;
convertfunc(path.join(folder_path.value, f));
};
}
else{
console.log('директории нет');
console.log("SecondIfcondition");
create_new_folder();
getdirectories(folder_path.value);
console.log(content);
txtlisttosend = "\n".join(content);
for(let f in content){
counter += 1;
convertfunc(path.join(folder_path.value, f));
};
}
return txtlisttosend;
}
module.exports = {
entry: './src/main.js',
target: 'node',
output: {
path: path.join(__dirname, 'build'),
filename: 'backend.js'
}
}
def ogg_to_wav(file):
args = ["ffmpeg", "-i", file, "test.wav"]
process = Popen(args)
process.wait()