Changeset 469 for trunk/Include/Classes/System/IO/Path.ab
- Timestamp:
- Mar 10, 2008, 10:54:32 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Include/Classes/System/IO/Path.ab
r468 r469 88 88 */ 89 89 Static Function GetFullPath(path As String) As String 90 path = CheckPath(path) 90 91 If IsPathRooted(path) Then 91 92 Return path … … 207 208 Static Function IsPathRooted(path As String) As Boolean 208 209 path = CheckPath(path) 209 Return path. Contains(UniformNamingConventionString) _210 Return path.StartsWith(UniformNamingConventionString) _ 210 211 or path.Contains(VolumeSeparatorChar) _ 211 212 or path.StartsWith(DirectorySeparatorChar) … … 238 239 Next 239 240 240 If path.LastIndexOf(UniformNamingConventionString) > 0 Then 241 Throw New IOException("Path.CheckPath: The path is invalid value.") 242 End If 241 Dim continuousIndex = path.IndexOf("\\", 1) 242 While continuousIndex <> -1 243 path = path.Remove(continuousIndex, 1) 244 continuousIndex = path.IndexOf("\\", continuousIndex) 245 Wend 243 246 244 247 If path.EndsWith(DirectorySeparatorChar) Then
Note:
See TracChangeset
for help on using the changeset viewer.