public SRMDir(SRMFileSystem client, TMetaDataPathDetail details, DirQuery dirQ) { super(client, (VRL) null); this.srmfs = client; this.srmDetails = details; this.dirQuery = dirQ; // recreate Dir VRL ! VRL vrl = client.createPathVRL(details.getPath(), null); this.setLocation(vrl); }
public SRMDir(SRMFileSystem client, VRL vrl) { super(client, (VRL) null); this.srmfs = client; // parse dir query or return null object! this.dirQuery = DirQuery.parseDirQuery(vrl); // update VRL ! VRL parsedVrl = client.createPathVRL(vrl.getPath(), dirQuery); this.setLocation(parsedVrl); }