It may be corrupt indeed. And the database may be compromised of several
files.
Le 7 avr. 2014 08:38, "Marco Jacob" <notifications@github.com> a écrit :

> In main/src/cgeo/geocaching/settings/SettingsActivity.java:
>
> > @@ -457,6 +461,12 @@ protected void onActivityResult(final int requestCode, final int resultCode, fin
> >          for (DirChooserType dct : DirChooserType.values()) {
> >              if (requestCode == dct.requestCode) {
> >                  setChosenDirectory(dct, data);
> > +                if (dct.keyId == R.string.pref_cgeo_dir) {
> > +                    if (LocalStorage.setCgeoDir(Settings.getCgeoDir()) && Settings.isDbOnSDCard()) {
> > +                        DataStore.closeDb();
>
> In my opinion it is not necessary that users kill c:geo because after
> copying it will start with the old directory database until the setting is
> changed. The user may delete the source folder or not. He might choose if
> he wants to.
>
> What I don't know is if the open database file is not consistent. Will it
> be corrupt if I copy an opened file?
>
> @rsudev <https://github.com/rsudev>
> Do you see an alternative solution?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/cgeo/cgeo/pull/3730/files#r11332373>
> .
>