// Path: app/src/main/java/be/ppareit/swiftp/server/FtpUser.java
// public class FtpUser {
// 
//     final private String mUsername;
//     final private String mPassword;
//     final private String mChroot;
// 
//     public FtpUser(@NonNull String username, @NonNull String password, @NonNull String chroot) {
//         mUsername = username;
//         mPassword = password;
// 
//         final File rootPath = new File(chroot);
//         mChroot = rootPath.isDirectory() ? chroot : FsSettings.getDefaultChrootDir().getPath();
// 
//     }
// 
//     public String getUsername() {
//         return mUsername;
//     }
// 
//     public String getPassword() {
//         return mPassword;
//     }
// 
//     public String getChroot() {
//         return mChroot;
//     }
// }


import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Set;
import java.util.TreeSet;
import be.ppareit.swiftp.server.FtpUser;
import lombok.val;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Environment;
import android.preference.PreferenceManager;
import android.util.Log;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import java.io.File;
/*
Copyright 2011-2013 Pieter Pareit
Copyright 2009 David Revell

This file is part of SwiFTP.

SwiFTP is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

SwiFTP is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with SwiFTP.  If not, see <http://www.gnu.org/licenses/>.
*/

package be.ppareit.swiftp;





public class FsSettings {

    private final static String TAG = FsSettings.class.getSimpleName();

// Path: app/src/main/java/be/ppareit/swiftp/server/FtpUser.java
// public class FtpUser {
// 
//     final private String mUsername;
//     final private String mPassword;
//     final private String mChroot;
// 
//     public FtpUser(@NonNull String username, @NonNull String password, @NonNull String chroot) {
//         mUsername = username;
//         mPassword = password;
// 
//         final File rootPath = new File(chroot);
//         mChroot = rootPath.isDirectory() ? chroot : FsSettings.getDefaultChrootDir().getPath();
// 
//     }
// 
//     public String getUsername() {
//         return mUsername;
//     }
// 
//     public String getPassword() {
//         return mPassword;
//     }
// 
//     public String getChroot() {
//         return mChroot;
//     }
// }


// Path: app/src/main/java/be/ppareit/swiftp/FsSettings.java
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Set;
import java.util.TreeSet;
import be.ppareit.swiftp.server.FtpUser;
import lombok.val;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Environment;
import android.preference.PreferenceManager;
import android.util.Log;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import java.io.File;

/*
Copyright 2011-2013 Pieter Pareit
Copyright 2009 David Revell

This file is part of SwiFTP.

SwiFTP is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

SwiFTP is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with SwiFTP.  If not, see <http://www.gnu.org/licenses/>.
*/

package be.ppareit.swiftp;





public class FsSettings {

    private final static String TAG = FsSettings.class.getSimpleName();

    public static List<FtpUser> getUsers() {