xref: /MusicFree/src/constants/pathConst.ts (revision 2d0ec5c16a4ba4edc62f6ae92da18cdc33751ff4)
1*2d0ec5c1S猫头猫import {Platform} from 'react-native';
26c6f45bdS猫头猫import RNFS from 'react-native-fs';
36c6f45bdS猫头猫
4*2d0ec5c1S猫头猫export const basePath =
5*2d0ec5c1S猫头猫  Platform.OS === 'android'
66c6f45bdS猫头猫    ? RNFS.ExternalDirectoryPath
7*2d0ec5c1S猫头猫    : RNFS.DocumentDirectoryPath;
86c6f45bdS猫头猫
96780f402S猫头猫const storagePath = RNFS.ExternalStorageDirectoryPath;
10233cafa6S猫头猫
116c6f45bdS猫头猫export default {
126c6f45bdS猫头猫  pluginPath: `${basePath}/plugins/`,
137f771613S猫头猫  logPath: `${basePath}/log/`,
14233cafa6S猫头猫  dataPath: `${basePath}/data/`,
157f771613S猫头猫  cachePath: `${basePath}/cache/`,
16*2d0ec5c1S猫头猫  lrcCachePath: `${basePath}/cache/lrc/`,
176780f402S猫头猫  storagePath: `${storagePath}/musicfree/`,
18*2d0ec5c1S猫头猫  downloadPath: `${storagePath}/musicfree/download/`,
19*2d0ec5c1S猫头猫};
20