Lines Matching refs:File

33 import java.io.File;
39 File[] roots = File.listRoots();
42 File basePath = new File(roots[0] + "some" + File.separatorChar + "dir" + File.separatorChar + "test.txt");
43 File relativePath = new File(roots[1] + "some" + File.separatorChar + "dir" + File.separatorChar + "test.txt");
53 File[] roots = File.listRoots();
55 File basePath = new File(roots[0] + "some" + File.separatorChar + "dir" + File.separatorChar + "test.txt");
56 File relativePath = new File(roots[0] + "some" + File.separatorChar + "dir" + File.separatorChar + "test.txt");
68 File[] roots = File.listRoots();
70 File basePath = new File(roots[0] + "some" + File.separatorChar + "dir" + File.separatorChar);
71 File relativePath = new File(roots[0] + "some" + File.separatorChar + "dir" + File.separatorChar);
80 File[] roots = File.listRoots();
82 File basePath = new File(roots[0] + "some" + File.separatorChar + "dir");
83 File relativePath = new File(roots[0] + "some" + File.separatorChar + "dir");
92 File[] roots = File.listRoots();
94 File basePath = new File(roots[0] + "some" + File.separatorChar + "dir");
95 File relativePath = new File(roots[0] + "some" + File.separatorChar + "dir" + File.separatorChar);
104 File[] roots = File.listRoots();
106 File basePath = new File(roots[0] + "some" + File.separatorChar + "dir" + File.separatorChar);
107 File relativePath = new File(roots[0] + "some" + File.separatorChar + "dir");
116 File[] roots = File.listRoots();
118 File basePath = new File(roots[0] + "some");
119 File relativePath = new File(roots[0] + "some" + File.separatorChar + "dir");
128 File[] roots = File.listRoots();
130 File basePath = new File(roots[0] + "some" + File.separatorChar);
131 File relativePath = new File(roots[0] + "some" + File.separatorChar + "dir" + File.separatorChar);
140 File[] roots = File.listRoots();
142 File basePath = new File(roots[0] + "some");
143 File relativePath = new File(roots[0] + "some" + File.separatorChar + "dir" + File.separatorChar);
152 File[] roots = File.listRoots();
154 File basePath = new File(roots[0] + "some" + File.separatorChar);
155 File relativePath = new File(roots[0] + "some" + File.separatorChar + "dir");
164 File[] roots = File.listRoots();
166 File basePath = new File(roots[0] + "some");
167 File relativePath = new File(roots[0] + "some" + File.separatorChar + "dir" + File.separatorChar + "dir2");
171 Assert.assertEquals(path, "dir" + File.separatorChar + "dir2");
176 File[] roots = File.listRoots();
178 File basePath = new File(roots[0] + "some" + File.separatorChar);
179 File relativePath = new File(roots[0] + "some" + File.separatorChar + "dir" + File.separatorChar + "dir2" + File.separatorChar);
183 Assert.assertEquals(path, "dir" + File.separatorChar + "dir2");
188 File[] roots = File.listRoots();
190 File basePath = new File(roots[0] + "some");
191 File relativePath = new File(roots[0] + "some" + File.separatorChar + "dir" + File.separatorChar + "dir2" + File.separatorChar);
195 Assert.assertEquals(path, "dir" + File.separatorChar + "dir2");
200 File[] roots = File.listRoots();
202 File basePath = new File(roots[0] + "some" + File.separatorChar);
203 File relativePath = new File(roots[0] + "some" + File.separatorChar + "dir" + File.separatorChar + "dir2");
207 Assert.assertEquals(path, "dir" + File.separatorChar + "dir2");
212 File[] roots = File.listRoots();
214 File basePath = new File(roots[0] + "some" + File.separatorChar + "dir3");
215 File relativePath = new File(roots[0] + "some" + File.separatorChar + "dir" + File.separatorChar + "dir2");
219 Assert.assertEquals(path, ".." + File.separatorChar + "dir" + File.separatorChar + "dir2");
224 File[] roots = File.listRoots();
226 File basePath = new File(roots[0] + "some2" + File.separatorChar + "dir3");
227 File relativePath = new File(roots[0] + "some" + File.separatorChar + "dir" + File.separatorChar + "dir2");
231 Assert.assertEquals(path, ".." + File.separatorChar + ".." + File.separatorChar + "some" + File.separatorChar + "dir" + File.separatorChar + "dir2");
236 File[] roots = File.listRoots();
238 File basePath = new File(roots[0].getPath());
239 File relativePath = new File(roots[0] + "some" + File.separatorChar + "dir" + File.separatorChar + "dir2");
243 Assert.assertEquals(path, "some" + File.separatorChar + "dir" + File.separatorChar + "dir2");
248 File[] roots = File.listRoots();
250 File basePath = new File(roots[0] + "some" + File.separatorChar + "dir");
251 File relativePath = new File(roots[0] + "some");
260 File[] roots = File.listRoots();
262 File basePath = new File(roots[0] + "some" + File.separatorChar + "dir" + File.separatorChar + "dir2");
263 File relativePath = new File(roots[0] + "some");
267 Assert.assertEquals(path, ".." + File.separatorChar + "..");