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:
parent
c82cdd49e2
commit
04dc0c92ff
1 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue