(directory: &Path, record: &FullAccessRecord)
| 40 | } |
| 41 | |
| 42 | pub fn create(directory: &Path, record: &FullAccessRecord) -> crate::Result<ServerDir> { |
| 43 | let dir_path = create_new_server_dir(directory)?; |
| 44 | |
| 45 | let server_dir = ServerDir::open(&dir_path)?; |
| 46 | let access_file_path = server_dir.access_filename(); |
| 47 | store_access_record(record, access_file_path)?; |
| 48 | |
| 49 | let symlink = directory.join(SYMLINK_PATH); |
| 50 | create_symlink(&symlink, &dir_path)?; |
| 51 | Ok(server_dir) |
| 52 | } |
| 53 | |
| 54 | pub fn path<P: AsRef<Path>>(&self, path: P) -> PathBuf { |
| 55 | self.path.join(path) |
nothing calls this directly
no test coverage detected