You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Gets the absolute, canonical path of this container, using forward slashes
10
-
* as path separator.
11
-
*
12
-
* The path starts with a _root prefix_ followed by zero or more _path
13
-
* segments_ separated by forward slashes.
14
-
*
15
-
* The root prefix is of one of the following forms:
16
-
*
17
-
* 1. A single forward slash `/` (Unix-style)
18
-
* 2. An upper-case drive letter followed by a colon and a forward slash,
19
-
* such as `C:/` (Windows-style)
20
-
* 3. Two forward slashes, a computer name, and then another forward slash,
21
-
* such as `//FileServer/` (UNC-style)
22
-
*
23
-
* Path segments are never empty (that is, absolute paths never contain two
24
-
* contiguous slashes, except as part of a UNC-style root prefix). Also, path
25
-
* segments never contain forward slashes, and no path segment is of the
26
-
* form `.` (one dot) or `..` (two dots).
27
-
*
28
-
* Note that an absolute path never ends with a forward slash, except if it is
29
-
* a bare root prefix, that is, the path has no path segments. A container
30
-
* whose absolute path has no segments is always a `Folder`, not a `File`.
31
-
*/
32
-
abstractstringgetAbsolutePath();
7
+
module FSImpl implements FS::FilesSig{
8
+
// TODO: Move to internal/ folder?
9
+
abstractclassAtContainerextends @container {
10
+
abstractstringgetAbsolutePath();
33
11
34
-
/**
35
-
* Gets a URL representing the location of this container.
36
-
*
37
-
* For more information see [Providing URLs](https://codeql.github.com/docs/writing-codeql-queries/providing-locations-in-codeql-queries/#providing-urls).
38
-
*/
39
-
abstractstringgetURL();
12
+
stringtoString(){result=this.getAbsolutePath()}
40
13
41
-
/**
42
-
* Gets the relative path of this file or folder from the root folder of the
43
-
* analyzed source location. The relative path of the root folder itself is
44
-
* the empty string.
45
-
*
46
-
* This has no result if the container is outside the source root, that is,
47
-
* if the root folder is not a reflexive, transitive parent of this container.
0 commit comments