diff options
Diffstat (limited to 'crates/shirabe-external-packages/src/symfony/component/finder')
4 files changed, 118 insertions, 0 deletions
diff --git a/crates/shirabe-external-packages/src/symfony/component/finder/finder.rs b/crates/shirabe-external-packages/src/symfony/component/finder/finder.rs new file mode 100644 index 0000000..95bc4f7 --- /dev/null +++ b/crates/shirabe-external-packages/src/symfony/component/finder/finder.rs @@ -0,0 +1,55 @@ +use crate::symfony::component::finder::spl_file_info::SplFileInfo; + +#[derive(Debug)] +pub struct Finder; + +impl Finder { + pub fn new() -> Self { + todo!() + } + + pub fn create() -> Self { + todo!() + } + + pub fn files(&mut self) -> &mut Self { + todo!() + } + + pub fn directories(&mut self) -> &mut Self { + todo!() + } + + pub fn depth(&mut self, level: i64) -> &mut Self { + todo!() + } + + pub fn r#in(&mut self, dirs: &str) -> &mut Self { + todo!() + } + + pub fn ignore_vcs(&mut self, ignore_vcs: bool) -> &mut Self { + todo!() + } + + pub fn ignore_dot_files(&mut self, ignore_dot_files: bool) -> &mut Self { + todo!() + } + + pub fn not_name(&mut self, pattern: &str) -> &mut Self { + todo!() + } + + pub fn name(&mut self, pattern: &str) -> &mut Self { + todo!() + } + + pub fn sort_by_name(&mut self) -> &mut Self { + todo!() + } + + pub fn iter(&self) -> impl Iterator<Item = SplFileInfo> { + todo!(); + std::iter::empty() + } +} diff --git a/crates/shirabe-external-packages/src/symfony/component/finder/glob.rs b/crates/shirabe-external-packages/src/symfony/component/finder/glob.rs new file mode 100644 index 0000000..d6aadd2 --- /dev/null +++ b/crates/shirabe-external-packages/src/symfony/component/finder/glob.rs @@ -0,0 +1,8 @@ +#[derive(Debug)] +pub struct Glob; + +impl Glob { + pub fn to_regex(glob: &str, strict_leading_dot: bool, strict_wildcard_slash: bool) -> String { + todo!() + } +} diff --git a/crates/shirabe-external-packages/src/symfony/component/finder/mod.rs b/crates/shirabe-external-packages/src/symfony/component/finder/mod.rs new file mode 100644 index 0000000..b71a0ef --- /dev/null +++ b/crates/shirabe-external-packages/src/symfony/component/finder/mod.rs @@ -0,0 +1,3 @@ +pub mod finder; +pub mod glob; +pub mod spl_file_info; diff --git a/crates/shirabe-external-packages/src/symfony/component/finder/spl_file_info.rs b/crates/shirabe-external-packages/src/symfony/component/finder/spl_file_info.rs new file mode 100644 index 0000000..fd63b33 --- /dev/null +++ b/crates/shirabe-external-packages/src/symfony/component/finder/spl_file_info.rs @@ -0,0 +1,52 @@ +#[derive(Debug)] +pub struct SplFileInfo; + +impl SplFileInfo { + pub fn get_path_name(&self) -> String { + todo!() + } + + pub fn get_path(&self) -> String { + todo!() + } + + pub fn get_filename(&self) -> String { + todo!() + } + + pub fn get_basename(&self, suffix: Option<&str>) -> String { + todo!() + } + + pub fn get_extension(&self) -> String { + todo!() + } + + pub fn get_relative_path_name(&self) -> String { + todo!() + } + + pub fn get_relative_path(&self) -> String { + todo!() + } + + pub fn is_dir(&self) -> bool { + todo!() + } + + pub fn is_file(&self) -> bool { + todo!() + } + + pub fn is_link(&self) -> bool { + todo!() + } + + pub fn get_real_path(&self) -> Option<String> { + todo!() + } + + pub fn get_size(&self) -> i64 { + todo!() + } +} |
