Inline
This commit is contained in:
parent
415fa79271
commit
cd4b2a6810
|
@ -1,5 +0,0 @@
|
||||||
export const getParentFolderName = (filePath: string) => {
|
|
||||||
const folderPath = filePath.substring(0, filePath.lastIndexOf("/"));
|
|
||||||
const folderName = folderPath.substring(folderPath.lastIndexOf("/") + 1);
|
|
||||||
return folderName;
|
|
||||||
};
|
|
|
@ -15,7 +15,6 @@ import { groupFilesBasedOnCollectionID } from "utils/file";
|
||||||
import { getValidFilesToUpload } from "utils/watch";
|
import { getValidFilesToUpload } from "utils/watch";
|
||||||
import { removeFromCollection } from "../collectionService";
|
import { removeFromCollection } from "../collectionService";
|
||||||
import { getLocalFiles } from "../fileService";
|
import { getLocalFiles } from "../fileService";
|
||||||
import { getParentFolderName } from "./utils";
|
|
||||||
import {
|
import {
|
||||||
diskFileAddedCallback,
|
diskFileAddedCallback,
|
||||||
diskFileRemovedCallback,
|
diskFileRemovedCallback,
|
||||||
|
@ -642,3 +641,9 @@ class watchFolderService {
|
||||||
}
|
}
|
||||||
|
|
||||||
export default new watchFolderService();
|
export default new watchFolderService();
|
||||||
|
|
||||||
|
export const getParentFolderName = (filePath: string) => {
|
||||||
|
const folderPath = filePath.substring(0, filePath.lastIndexOf("/"));
|
||||||
|
const folderName = folderPath.substring(folderPath.lastIndexOf("/") + 1);
|
||||||
|
return folderName;
|
||||||
|
};
|
||||||
|
|
Loading…
Reference in a new issue