Lines Matching refs:path

53     private final byte[] path;
61 // array of offsets of elements in path (created lazily)
64 UnixPath(UnixFileSystem fs, byte[] path) {
66 this.path = path;
118 // encodes the given path-string into a sequence of bytes
161 return path;
164 // use this path when making system/library calls
169 return resolve(getFileSystem().defaultDirectory(), path);
172 return path;
174 // empty path case will access current directory
186 // use this path for permission checks
213 // empty path has one name
216 while (index < path.length) {
217 byte c = path[index++];
220 while (index < path.length && path[index] != '/')
230 while (index < path.length) {
231 byte c = path[index];
236 while (index < path.length && path[index] != '/')
247 // returns {@code true} if this path is an empty path
249 return path.length == 0;
252 // returns an empty path
264 if (path.length > 0 && path[0] == '/') {
282 if (count == 1 && path.length > 0 && path[0] != '/')
286 int len = path.length - lastOffset;
288 System.arraycopy(path, lastOffset, result, 0, len);
307 System.arraycopy(path, 0, result, 0, len);
328 len = path.length - begin;
335 System.arraycopy(path, begin, result, 0, len);
357 len = path.length - begin;
364 System.arraycopy(path, begin, result, 0, len);
370 return (path.length > 0 && path[0] == '/');
397 byte[] other = toUnixPath(obj).path;
400 byte[] result = resolve(path, other);
418 // this path is the empty path
441 // other is the empty path
446 // the empty path then we don't add the final trailing slash.
447 int len = dotdots*3 + remainder.path.length;
464 System.arraycopy(remainder.path, 0, result, pos, remainder.path.length);
502 len = path.length - begin;
508 if (path[begin] == '.') {
514 if (path[begin+1] == '.') // ".." found
537 if (path[begin] != '.' || path[begin+1] != '.') {
597 System.arraycopy(path, offsets[i], result, pos, size[i]);
613 // other path is longer
614 if (that.path.length > path.length)
620 // other path has no name elements
625 // given path has more elements that this path
631 (path.length != that.path.length)) {
645 while (i < that.path.length) {
646 if (this.path[i] != that.path[i])
652 if (i < path.length && this.path[i] != '/')
664 int thisLen = path.length;
665 int thatLen = that.path.length;
667 // other path is longer
671 // other path is the empty path
675 // other path is absolute so this path must be absolute
682 // given path has more elements that this path
696 // this path has more elements so given path must be relative
708 if (this.path[thisPos++] != that.path[thatPos++])
717 int len1 = path.length;
718 int len2 = ((UnixPath) other).path.length;
721 byte v1[] = path;
722 byte v2[] = ((UnixPath) other).path;
749 for (int i = 0; i< path.length; i++) {
750 h = 31*h + (path[i] & 0xff);
761 stringValue = fs.normalizeJavaPath(new String(path)); // platform encoding
815 // The path is relative so need to resolve against default directory,
822 resolve(getFileSystem().defaultDirectory(), path));