21 SNPRINTF(file_name_c,
"%011.5f",
double(frame));
32 const SubFrame frame = std::stof(modified_file_name);
51 for (
const int i :
IndexRange(dir_entries_num)) {
52 const direntry &dir_entry = dir_entries[i];
54 if (!dir_entry_path.
endswith(
".json")) {
61 meta_files.append({*frame, dir_entry_path});
64 std::ranges::sort(meta_files,
File and directory operations.
#define BLI_SCOPED_DEFER(function_to_defer)
#define BLI_path_join(...)
#define SNPRINTF(dst, format,...)
constexpr IndexRange()=default
constexpr const char * c_str() const
void copy_utf8_truncated(char *dst, int64_t dst_size) const
constexpr bool endswith(StringRef suffix) const
std::string frame_to_file_name(const SubFrame &frame)
std::optional< SubFrame > file_name_to_frame(StringRef file_name)
Vector< MetaFile > find_sorted_meta_files(StringRefNull meta_dir)
unsigned int BLI_filelist_dir_contents(const char *dirname, struct direntry **r_filelist)
void BLI_string_replace_char(char *str, char src, char dst) ATTR_NONNULL(1)
bool BLI_is_dir(const char *path) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
void BLI_filelist_free(struct direntry *filelist, unsigned int nrentries)
static BakePath from_single_root(StringRefNull root_dir)
std::optional< std::string > bake_dir