1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-12-27 05:11:30 +00:00

Added workaround for .stfolders not being created (fixes #168).

This commit is contained in:
Felix Ableitner 2014-10-23 13:26:48 +03:00
parent c82cdd49e2
commit 04dc0c92ff

View file

@ -131,6 +131,16 @@ public class ConfigXml {
changed = true;
}
// HACK: Create .stfolders in all folders if it does not exist.
// This is not the best place to put it, but it's only temporary.
try {
boolean exists = new File(dir, ".stfolder").createNewFile();
Log.d(TAG, dir + Boolean.toString(exists));
} catch (IOException e) {
// This might happen if the device is not mounted.
Log.i(TAG, "Failed to create .stversions in " + dir, e);
}
if (applyLenientMTimes(r)) {
changed = true;
}