Package com.mozilla.bespin

Examples of com.mozilla.bespin.FileSystem.list()


public class File extends BespinController {
    @RequiresLogin
    public void list() throws IOException {
        FileSystem filesys = getFilesystem();
        java.io.File[] files = filesys.list(getUser(), getPath());
        JSONArray array = new JSONArray();
        for (int i = 0; i < files.length; i++) {
            String name = files[i].getName();
            if (files[i].isDirectory()) name += "/";
            array.add(name);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.