xref: /MusicFree/src/constants/pathConst.ts (revision 6704747af84cebd842b258efac7143542722fac5)
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