aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe-external-packages/src/symfony/component/filesystem/filesystem.rs
blob: ef48c3d48861090e4da1e78fac0cf64b85b67f3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
use shirabe_php_shim::PhpMixed;

#[derive(Debug, Clone)]
pub struct Filesystem;

impl Filesystem {
    pub fn new() -> Self {
        todo!()
    }

    pub fn copy(
        &self,
        origin_file: &str,
        target_file: &str,
        override_file: bool,
    ) -> anyhow::Result<()> {
        todo!()
    }

    pub fn mkdir(&self, dirs: PhpMixed, mode: u32) -> anyhow::Result<()> {
        todo!()
    }

    pub fn exists(&self, files: PhpMixed) -> bool {
        todo!()
    }

    pub fn touch(
        &self,
        files: PhpMixed,
        time: Option<i64>,
        atime: Option<i64>,
    ) -> anyhow::Result<()> {
        todo!()
    }

    pub fn remove(&self, files: PhpMixed) -> anyhow::Result<()> {
        todo!()
    }

    pub fn chmod(
        &self,
        files: PhpMixed,
        mode: u32,
        umask: u32,
        recursive: bool,
    ) -> anyhow::Result<()> {
        todo!()
    }

    pub fn chown(&self, files: PhpMixed, user: PhpMixed, recursive: bool) -> anyhow::Result<()> {
        todo!()
    }

    pub fn chgrp(&self, files: PhpMixed, group: PhpMixed, recursive: bool) -> anyhow::Result<()> {
        todo!()
    }

    pub fn rename(&self, origin: &str, target: &str, override_file: bool) -> anyhow::Result<()> {
        todo!()
    }

    pub fn symlink(
        &self,
        origin_dir: &str,
        target_dir: &str,
        copy_on_windows: bool,
    ) -> anyhow::Result<()> {
        todo!()
    }

    pub fn hard_link(&self, origin_file: &str, target_files: PhpMixed) -> anyhow::Result<()> {
        todo!()
    }

    pub fn read_link(&self, path: &str) -> String {
        todo!()
    }

    pub fn make_path_relative(&self, end_path: &str, start_path: &str) -> String {
        todo!()
    }

    pub fn mirror(
        &self,
        origin_dir: &str,
        target_dir: &str,
        iterator: Option<PhpMixed>,
        options: &indexmap::IndexMap<String, PhpMixed>,
    ) -> anyhow::Result<()> {
        todo!()
    }

    pub fn is_absolute_path(&self, file: &str) -> bool {
        todo!()
    }

    pub fn dump_file(&self, filename: &str, content: &str) -> anyhow::Result<()> {
        todo!()
    }

    pub fn append_to_file(&self, filename: &str, content: &str) -> anyhow::Result<()> {
        todo!()
    }

    pub fn temp_nam(&self, dir: &str, prefix: &str) -> anyhow::Result<String> {
        todo!()
    }

    // Static-style helper methods used in the ported codebase
    pub fn is_readable(path: &str) -> bool {
        todo!()
    }

    pub fn is_local_path(path: &str) -> bool {
        todo!()
    }

    pub fn trim_trailing_slash(path: &str) -> String {
        todo!()
    }

    pub fn get_platform_path(path: &str) -> String {
        todo!()
    }
}