package eu.alefzero.owncloud.files.services;\r
\r
import java.io.File;\r
+import java.io.IOException;\r
\r
import android.accounts.Account;\r
import android.accounts.AccountManager;\r
mNotificationMngr.notify(1, mNotification);\r
\r
File sdCard = Environment.getExternalStorageDirectory();\r
- File dir = new File(sdCard.getAbsolutePath() + "/owncloud");\r
- dir.mkdirs();\r
- File file = new File(dir, mFilePath.replace('/', '.'));\r
+ File file = new File(sdCard.getAbsolutePath() + "/owncloud/" + mAccount.name + mFilePath);\r
+ try {\r
+ file.createNewFile();\r
+ } catch (IOException e) {\r
+ e.printStackTrace();\r
+ }\r
\r
Log.e(TAG, file.getAbsolutePath() + " " + oc_url.toString());\r
Log.e(TAG, mFilePath+"");\r