xref: /MusicFree/src/constants/pathConst.ts (revision 4060c00a75883036bbd315fb25c90065209312b3)
1import {Platform} from 'react-native';
2import RNFS from 'react-native-fs';
3
4export const basePath =
5    Platform.OS === 'android'
6        ? RNFS.ExternalDirectoryPath
7        : RNFS.DocumentDirectoryPath;
8
9const storagePath = RNFS.ExternalStorageDirectoryPath;
10
11export default {
12    pluginPath: `${basePath}/plugins/`,
13    logPath: `${basePath}/log/`,
14    dataPath: `${basePath}/data/`,
15    cachePath: `${basePath}/cache/`,
16    lrcCachePath: `${basePath}/cache/lrc/`,
17    storagePath: `${storagePath}/musicfree/`,
18    downloadPath: `${storagePath}/musicfree/download/`,
19};
20