コード例 #1
0
 @Override
 public PnfsId createDirectory(Subject subject, String path, FileAttributes attributes)
     throws CacheException {
   PnfsHandler pnfs = new PnfsHandler(_pnfs, subject, Restrictions.none());
   attributes.setFileType(DIR);
   PnfsCreateEntryMessage returnMsg = pnfs.createPnfsDirectory(path, attributes);
   return returnMsg.getPnfsId();
 }
コード例 #2
0
  @Override
  public PnfsId createSymLink(Subject subject, String path, String dest, FileAttributes attributes)
      throws CacheException {
    PnfsHandler pnfs = new PnfsHandler(_pnfs, subject, Restrictions.none());

    PnfsCreateEntryMessage returnMsg = pnfs.createSymLink(path, dest, attributes);

    return returnMsg.getPnfsId();
  }