mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-18 03:36:26 -07:00
Use fileMoveOrCopy
This commit is contained in:
parent
45180c910f
commit
68dcc8ba94
13 changed files with 673 additions and 41 deletions
|
|
@ -36,7 +36,7 @@ export const getSubStem = ({
|
|||
return parts.join('/');
|
||||
};
|
||||
|
||||
const getFileSize = async (file:string):Promise<number> => {
|
||||
export const getFileSize = async (file:string):Promise<number> => {
|
||||
const stats = await fs.stat(file);
|
||||
const { size } = stats;
|
||||
return size;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue