parent
40eca83dba
commit
49ba116783
1 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import { copyFileSync, mkdirSync, readFileSync, rmSync } from 'fs';
|
import { linkSync, mkdirSync, readFileSync, rmSync } from 'fs';
|
||||||
import { basename } from 'path';
|
import { basename } from 'path';
|
||||||
|
|
||||||
// eslint-disable-next-line
|
// eslint-disable-next-line
|
||||||
|
@ -178,8 +178,8 @@ const main = async() => {
|
||||||
const bookPath = book.url;
|
const bookPath = book.url;
|
||||||
const inListPath = `${seriesPath}/${basename(bookPath)}`;
|
const inListPath = `${seriesPath}/${basename(bookPath)}`;
|
||||||
|
|
||||||
console.log(`copying ${basename(bookPath)}`);
|
console.log(`hardlinking ${basename(bookPath)}`);
|
||||||
copyFileSync(bookPath, inListPath);
|
linkSync(bookPath, inListPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
await scanLibrary();
|
await scanLibrary();
|
||||||
|
|
Loading…
Add table
Reference in a new issue