(src: string, dst: string)
| 124 | } |
| 125 | |
| 126 | static async move(src: string, dst: string) { |
| 127 | const res = await StorageModel.coll.findOneAndUpdate( |
| 128 | { path: src, autoDelete: null }, |
| 129 | { $set: { path: dst } }, |
| 130 | ); |
| 131 | return !!res; |
| 132 | } |
| 133 | |
| 134 | static async exists(path: string) { |
| 135 | const value = await StorageModel.coll.findOne({ path, autoDelete: null }); |