Examples of allowUploadFrom()


Examples of freenet.node.NodeClientCore.allowUploadFrom()

      if(core == null) return;
      if(val.equals(get()) || val.equals(""))
        cssOverride = null;
      else {
        File tmp = new File(val.trim());
        if(!core.allowUploadFrom(tmp))
          throw new InvalidConfigValueException(l10n("cssOverrideNotInUploads", "filename", tmp.toString()));
        else if(!tmp.canRead() || !tmp.isFile())
          throw new InvalidConfigValueException(l10n("cssOverrideCantRead", "filename", tmp.toString()));
        File parent = tmp.getParentFile();
        // Basic sanity check.
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.