File tree Expand file tree Collapse file tree 1 file changed +10
-14
lines changed Expand file tree Collapse file tree 1 file changed +10
-14
lines changed Original file line number Diff line number Diff line change 4
4
*/
5
5
6
6
import { path_split } from "./misc" ;
7
- import { hidden_meta_file , original_path } from "@cocalc/util/misc" ;
7
+ import { hidden_meta_file } from "@cocalc/util/misc" ;
8
8
9
9
// NOTE: there are also .term files in subframes with history that doesn't get
10
10
// deleted. That's an edge case.
@@ -16,19 +16,15 @@ export function deleted_file_variations(path: string): string[] {
16
16
head = head + "/" ;
17
17
}
18
18
const variations : string [ ] = [ path ] ;
19
- if ( tail . startsWith ( "." ) ) {
20
- variations . push ( head + original_path ( tail ) ) ;
21
- } else {
22
- for ( const ext of [
23
- "sage-chat" ,
24
- "sage-jupyter" ,
25
- "sage-jupyter2" ,
26
- "time-travel" ,
27
- "sage-history" ,
28
- "syncdb" ,
29
- ] ) {
30
- variations . push ( head + hidden_meta_file ( tail , ext ) ) ;
31
- }
19
+ for ( const ext of [
20
+ "sage-chat" ,
21
+ "sage-jupyter" ,
22
+ "sage-jupyter2" ,
23
+ "time-travel" ,
24
+ "sage-history" ,
25
+ "syncdb" ,
26
+ ] ) {
27
+ variations . push ( head + hidden_meta_file ( tail , ext ) ) ;
32
28
}
33
29
return variations ;
34
30
}
You can’t perform that action at this time.
0 commit comments