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
//! The port to a temporary project and to directories outside the project.
//!
//! Pure trait definition with no executable logic, so it carries no inline tests.
//!
//! # Responsibilities
//!
//! - [`Scratch`] opens a directory outside the project for reading and creates a temporary
//! project holding a given set of files.
//!
//! # Non-responsibilities
//!
//! It decides nothing. Which files the project holds and what a refusal says belong to the rules in
//! `types`; the real disk and the temporary directory belong to the `fs` adapter.
use io;
use Path;
use crateFileTree;
use crateWorkspace;
use crateStagedFile;
/// Directories outside the project, and a temporary project beside them.