Package org.olat.core.util.vfs

Examples of org.olat.core.util.vfs.LocalFolderImpl.canDelete()


   * @return
   */
  public VFSStatus removeQtiSerFiles(Long resourceableId, String ident) {
    if (resourceableId == null || ident == null || ident.length() == 0) return VFSConstants.NO;
    LocalFolderImpl item = new LocalFolderImpl(new File(FilePersister.getFullPathToCourseNodeDirectory(Long.toString(resourceableId), ident)));
    if(item.canDelete().equals(VFSConstants.YES)) return item.delete();
    return VFSConstants.NO;
  }
 
 
 
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.