Package cu.ftpd.filesystem.metadata

Examples of cu.ftpd.filesystem.metadata.MetadataHandler


        return permissions;
    }

    // MetadataHandler
    protected void configureMetadataHandler() {
        metadataHandler = new MetadataHandler();
        Server.getInstance().getTimer().schedule(new Saver(metadataHandler), 15000, 15000); // this doesn't actually save anything, it just clears the cache of dead things
    }
View Full Code Here


            throw new PermissionDeniedException(ActionPermission.MKDIR, ftpPathToDir, user);
        }
        if (!mkd.exists()) {
            boolean success = mkd.mkdirs();
            if (success) {
              MetadataHandler metadataHandler = ServiceManager.getServices().getMetadataHandler();
              metadataHandler.setOwnership(mkd, user.getUsername(), user.getPrimaryGroup());
              File f = mkd.getParentFile();
              while (f != null && !metadataHandler.hasOwner(f) && isLegalPath(f.getParentFile())) {
                metadataHandler.setOwnership(f, user.getUsername(), user.getPrimaryGroup());
                f = f.getParentFile();
              }
                return resolvePath(mkd);
            } else {
                throw new IOException("Could not create directory.");
View Full Code Here

TOP

Related Classes of cu.ftpd.filesystem.metadata.MetadataHandler

Copyright © 2018 www.massapicom. 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.