From 58dd8ffc0a869c8afb5e334e1e0d2fb28f88223e Mon Sep 17 00:00:00 2001 From: hankertrix <91734413+hankertrix@users.noreply.github.com> Date: Fri, 20 Dec 2024 02:20:15 +0800 Subject: [PATCH] feat: expose directory creation as part of the fs module --- yazi-plugin/src/fs/fs.rs | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/yazi-plugin/src/fs/fs.rs b/yazi-plugin/src/fs/fs.rs index 46ada698..f953c351 100644 --- a/yazi-plugin/src/fs/fs.rs +++ b/yazi-plugin/src/fs/fs.rs @@ -1,9 +1,16 @@ use globset::GlobBuilder; -use mlua::{ExternalError, ExternalResult, Function, IntoLua, IntoLuaMulti, Lua, MetaMethod, Table, Value}; +use mlua::{ + ExternalError, ExternalResult, Function, IntoLua, IntoLuaMulti, Lua, MetaMethod, Table, Value, +}; use tokio::fs; use yazi_fs::remove_dir_clean; -use crate::{Error, bindings::{Cast, Cha}, file::File, url::{Url, UrlRef}}; +use crate::{ + Error, + bindings::{Cast, Cha}, + file::File, + url::{Url, UrlRef}, +}; pub fn compose(lua: &Lua) -> mlua::Result