Lines Matching +full:expand +full:- +full:brackets
1 # Module 'riscospath' -- common operations on RISC OS pathnames.
15 # strings representing various path-related bits and pieces
24 # Imports - make an error-generating swi object if the swi module is not
45 # to understand the "-SomeFS-" notation left over from the old BBC Master MOS,
47 # compatible but remember that "-SomeFS-" can also be a perfectly valid file
60 dash= _allowMOSFSNames and p[:1]=='-'
62 q= string.find(p, '-', 1)+1
67 q= string.find(p, ':')+1 # q= index of start of non-FS portion of path
69 if s==-1 or s>q:
75 break # disallow invalid non-special-field characters in FS name
87 OS filesystems are case-insensitive. However, not all filesystems have to be,
109 an absolute or FS-changing path part is found.
116 elif j[-1]==':':
130 if q!=-1:
142 q= len(head)-string.rfind(head, '/')
143 return (p[:-q], p[-q:])
203 # RISC OS-specific file access functions
246 # Same-file testing.
290 if fs[:1]=='-':
291 fsname= fs[1:-1]
293 fsname= fs[:-1]
297 urd= b.tostring(0, l-x-1)
301 urd= b.tostring(0, l-x-1)
306 # Environment variables are in angle brackets.
310 Expand environment variables using OS_GSTrans.
318 abspath = os.expand
321 # realpath is a no-op on systems without islink support
329 Normalize path, eliminating up-directory ^s.
340 ups= ups-1
347 ups= ups-1
362 may modify the fnames list in-place (e.g. via del or slice assignment),