package mediabrowser.apiinteraction.android.sync.data;

import android.content.Context;
import mediabrowser.apiinteraction.sync.data.FileRepository;
import mediabrowser.model.logging.ILogger;

import java.io.File;

/**
 * Created by Luke on 3/25/2015.
 */
public class AndroidFileRepository extends FileRepository {

    protected Context context;

    public AndroidFileRepository(Context context, ILogger logger) {
        super(logger);
        this.context = context;
    }

    @Override
    protected String getBasePath() {

        File directory;

        directory = new File(context.getExternalFilesDir(null).getAbsolutePath());
        File file = new File(directory, "sync");

        return file.getPath();
    }
}

@@ -546,16 +546,52 @@
 irectory
+ = context.getExternalFilesDir(null)
 ;%0A%0A     
@@ -593,16 +593,20 @@
         
+if (
 director
@@ -608,26 +608,49 @@
 ectory =
+=
  n
-ew File(
+ull)%7B%0A            directory = 
 context.
@@ -648,32 +648,24 @@
  context.get
-External
 FilesDir(nul
@@ -665,33 +665,21 @@
 Dir(
-null).getAbsolutePath());
+);%0A        %7D%0A
 %0A   

update paths