xref: /MusicFree/src/constants/pathConst.ts (revision 6780f402e1a699cde3293b13d6bc38231824d37a)
16c6f45bdS猫头猫import { Platform } from "react-native";
26c6f45bdS猫头猫import RNFS from 'react-native-fs';
36c6f45bdS猫头猫
46c6f45bdS猫头猫export const basePath = Platform.OS === 'android'
56c6f45bdS猫头猫  ? RNFS.ExternalDirectoryPath
66c6f45bdS猫头猫  : RNFS.DocumentDirectoryPath
76c6f45bdS猫头猫
8*6780f402S猫头猫const storagePath = RNFS.ExternalStorageDirectoryPath;
9233cafa6S猫头猫
106c6f45bdS猫头猫
116c6f45bdS猫头猫export default {
126c6f45bdS猫头猫    pluginPath: `${basePath}/plugins/`,
13233cafa6S猫头猫    dataPath: `${basePath}/data/`,
14*6780f402S猫头猫    storagePath: `${storagePath}/musicfree/`,
15*6780f402S猫头猫    downloadPath: `${storagePath}/musicfree/download/`
166c6f45bdS猫头猫}