Today 700 .mxf files 7TB. No subfolders.admin wrote: ↑Mon Dec 31, 2018 11:49 pm Manual submitting of files can be done in the FFAStrans Workflow Manager. Just right-click a workflow and select "Submit file(s)". There's also a new web-interface available these days for managing jobs and submitting files: viewtopic.php?f=5&t=789
How big are the folders being monitored? Just asking because the next version will have the option to continously check for changig file size. This might help your case but because it's more resource demanding than normal monitoring it might not be a good option for very large folders (with subfolders).
-steinar
how to start a workflow without looking at existing files
Re: how to start a workflow without looking at existing files
Re: how to start a workflow without looking at existing files
Is it possible to check the presence of a file in the Destination Folder before encoding this file.admin wrote: ↑Mon Dec 31, 2018 11:49 pm Manual submitting of files can be done in the FFAStrans Workflow Manager. Just right-click a workflow and select "Submit file(s)". There's also a new web-interface available these days for managing jobs and submitting files: viewtopic.php?f=5&t=789
How big are the folders being monitored? Just asking because the next version will have the option to continously check for changig file size. This might help your case but because it's more resource demanding than normal monitoring it might not be a good option for very large folders (with subfolders).
-steinar
- Attachments
-
- Screen
- Screen1.PNG (35.11 KiB) Viewed 10475 times
Re: how to start a workflow without looking at existing files
Yes, you can insert a "Conditional" node before encoding that checks if the file exists:
-steinar
Remember to replace "\\full\path\to\destination.file" with your actual file -steinar
Re: how to start a workflow without looking at existing files
Good! Everything works for me like this $exists("C:\Users\Admin\Desktop\testOUT\%s_original_name%.mp4")
Compare Folders
You can fulfill these kind of requirements now using the webinterface scheduler.
viewtopic.php?f=5&t=789
1) set up a scheduled job running every 5 minutes or whatever frequency you like
2) hit the "Edit Condition" button and add this script, it will start one ffastrans job for each file that exists in the leftFolder but not in the right one. Take care, it will just send the found filename without extension to your ffastrans workflow, you need to re-assemble it there.
Don't forget to set leftFolder and rightFolder variable below to your folders. (with double backslashes as you see)
viewtopic.php?f=5&t=789
1) set up a scheduled job running every 5 minutes or whatever frequency you like
2) hit the "Edit Condition" button and add this script, it will start one ffastrans job for each file that exists in the leftFolder but not in the right one. Take care, it will just send the found filename without extension to your ffastrans workflow, you need to re-assemble it there.
Don't forget to set leftFolder and rightFolder variable below to your folders. (with double backslashes as you see)
Code: Select all
var path = require("path");
var fs = require('fs');
var leftFolder = "C:\\temp\\IN"
var rightFolder = "C:\\temp\\OUT"
fs.readdir(leftFolder, function(err, filesLeft) {
//remove extension
for (il in filesLeft){
var extension = path.extname(filesLeft[il]);
filesLeft[il] = path.basename(filesLeft[il],extension);
}
fs.readdir(rightFolder, function(err, filesRight) {
for (il in filesRight){
var extension = path.extname(filesRight[il]);
filesRight[il] = path.basename(filesRight[il],extension);
}
var diff = [];
for (il in filesLeft){
if (!filesRight.includes(filesLeft[il])){
console.log(filesLeft[il])
process.send([filesLeft[il]])
}
}
})
})
emcodem, wrapping since 2009 you got the rhyme?