mirror of
https://github.com/n00mkrad/flowframes.git
synced 2026-09-01 19:51:28 +02:00
Fixed image sequency copy not using incremental number filenames
This commit is contained in:
@@ -100,10 +100,12 @@ namespace Flowframes.Media
|
||||
Directory.CreateDirectory(outpath);
|
||||
|
||||
await Task.Run(async () => {
|
||||
int counter = 0;
|
||||
foreach (FileInfo file in IOUtils.GetFileInfosSorted(inpath))
|
||||
{
|
||||
string newFilename = Path.GetFileNameWithoutExtension(file.FullName).PadLeft(Padding.inputFrames, '0') + file.Extension;
|
||||
string newFilename = counter.ToString().PadLeft(Padding.inputFrames, '0') + file.Extension;
|
||||
File.Copy(file.FullName, Path.Combine(outpath, newFilename));
|
||||
counter++;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user