Skip to content

Commit

Permalink
change files location to app-folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergii Ivanchenko authored and Sergii Ivanchenko committed Jan 29, 2017
1 parent cf65f4d commit 5dd5a90
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion frontEnd/src/providers/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ import {File} from 'ionic-native';
See https://angular.io/docs/ts/latest/guide/dependency-injection.html
for more info on providers and Angular 2 DI.
*/

declare var cordova: any;

@Injectable()
export class Global {

Expand All @@ -28,7 +31,8 @@ export class Global {
public geoLocationSessionData: any = [];
public phoneUUID: string = "";
// public errContent: string = "";
public appFilesDirectory: string = "file:///storage/emulated/0/";
// public appFilesDirectory: string = "file:///storage/emulated/0/";
public appFilesDirectory: string = cordova.file.externalDataDirectory;
public appLogFile = "log.csv";
public errorLogFile = "errorLog.csv";
public appCSVFile = "data" + ".csv";
Expand Down
2 changes: 1 addition & 1 deletion frontEnd/src/providers/local-data-save-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class LocalDataSaveService {


// let folderpath = cordova.file.externalApplicationStorageDirectory;
let folderpath = cordova.file.externalDataDirectory;
// let folderpath = cordova.file.externalDataDirectory;

// let folderpath = "file:///storage/emulated/0/";

Expand Down

0 comments on commit 5dd5a90

Please sign in to comment.