Update for compatibility with multiple FS
#include "fs_priv.h"
+struct fs_ops *fops_from_filename(const char *);
+
int
fs_rename(const char *from, const char *to)
{
- struct fs_ops *fops = safe_fs_ops_for("fatfs");
+ struct fs_ops *fops = fops_from_filename(from);
return fops->f_rename(from, to);
}
int
fs_mkdir(const char *path)
{
- struct fs_ops *fops = safe_fs_ops_for("fatfs");
+ struct fs_ops *fops = fops_from_filename(path);
return fops->f_mkdir(path);
}
