$67 GRAYBYTE WORDPRESS FILE MANAGER $22

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/python33/lib64/python3.3/

HOME
Current File : /opt/alt/python33/lib64/python3.3//macpath.py
"""Pathname and path-related operations for the Macintosh."""

import os
from stat import *
import genericpath
from genericpath import *

__all__ = ["normcase","isabs","join","splitdrive","split","splitext",
           "basename","dirname","commonprefix","getsize","getmtime",
           "getatime","getctime", "islink","exists","lexists","isdir","isfile",
           "expanduser","expandvars","normpath","abspath",
           "curdir","pardir","sep","pathsep","defpath","altsep","extsep",
           "devnull","realpath","supports_unicode_filenames"]

# strings representing various path-related bits and pieces
# These are primarily for export; internally, they are hardcoded.
curdir = ':'
pardir = '::'
extsep = '.'
sep = ':'
pathsep = '\n'
defpath = ':'
altsep = None
devnull = 'Dev:Null'

def _get_colon(path):
    if isinstance(path, bytes):
        return b':'
    else:
        return ':'

# Normalize the case of a pathname.  Dummy in Posix, but <s>.lower() here.

def normcase(path):
    if not isinstance(path, (bytes, str)):
        raise TypeError("normcase() argument must be str or bytes, "
                        "not '{}'".format(path.__class__.__name__))
    return path.lower()


def isabs(s):
    """Return true if a path is absolute.
    On the Mac, relative paths begin with a colon,
    but as a special case, paths with no colons at all are also relative.
    Anything else is absolute (the string up to the first colon is the
    volume name)."""

    colon = _get_colon(s)
    return colon in s and s[:1] != colon


def join(s, *p):
    colon = _get_colon(s)
    path = s
    for t in p:
        if (not s) or isabs(t):
            path = t
            continue
        if t[:1] == colon:
            t = t[1:]
        if colon not in path:
            path = colon + path
        if path[-1:] != colon:
            path = path + colon
        path = path + t
    return path


def split(s):
    """Split a pathname into two parts: the directory leading up to the final
    bit, and the basename (the filename, without colons, in that directory).
    The result (s, t) is such that join(s, t) yields the original argument."""

    colon = _get_colon(s)
    if colon not in s: return s[:0], s
    col = 0
    for i in range(len(s)):
        if s[i:i+1] == colon: col = i + 1
    path, file = s[:col-1], s[col:]
    if path and not colon in path:
        path = path + colon
    return path, file


def splitext(p):
    if isinstance(p, bytes):
        return genericpath._splitext(p, b':', altsep, b'.')
    else:
        return genericpath._splitext(p, sep, altsep, extsep)
splitext.__doc__ = genericpath._splitext.__doc__

def splitdrive(p):
    """Split a pathname into a drive specification and the rest of the
    path.  Useful on DOS/Windows/NT; on the Mac, the drive is always
    empty (don't use the volume name -- it doesn't have the same
    syntactic and semantic oddities as DOS drive letters, such as there
    being a separate current directory per drive)."""

    return p[:0], p


# Short interfaces to split()

def dirname(s): return split(s)[0]
def basename(s): return split(s)[1]

def ismount(s):
    if not isabs(s):
        return False
    components = split(s)
    return len(components) == 2 and not components[1]

def islink(s):
    """Return true if the pathname refers to a symbolic link."""

    try:
        import Carbon.File
        return Carbon.File.ResolveAliasFile(s, 0)[2]
    except:
        return False

# Is `stat`/`lstat` a meaningful difference on the Mac?  This is safe in any
# case.

def lexists(path):
    """Test whether a path exists.  Returns True for broken symbolic links"""

    try:
        st = os.lstat(path)
    except os.error:
        return False
    return True

def expandvars(path):
    """Dummy to retain interface-compatibility with other operating systems."""
    return path


def expanduser(path):
    """Dummy to retain interface-compatibility with other operating systems."""
    return path

class norm_error(Exception):
    """Path cannot be normalized"""

def normpath(s):
    """Normalize a pathname.  Will return the same result for
    equivalent paths."""

    colon = _get_colon(s)

    if colon not in s:
        return colon + s

    comps = s.split(colon)
    i = 1
    while i < len(comps)-1:
        if not comps[i] and comps[i-1]:
            if i > 1:
                del comps[i-1:i+1]
                i = i - 1
            else:
                # best way to handle this is to raise an exception
                raise norm_error('Cannot use :: immediately after volume name')
        else:
            i = i + 1

    s = colon.join(comps)

    # remove trailing ":" except for ":" and "Volume:"
    if s[-1:] == colon and len(comps) > 2 and s != colon*len(s):
        s = s[:-1]
    return s

def abspath(path):
    """Return an absolute path."""
    if not isabs(path):
        if isinstance(path, bytes):
            cwd = os.getcwdb()
        else:
            cwd = os.getcwd()
        path = join(cwd, path)
    return normpath(path)

# realpath is a no-op on systems without islink support
def realpath(path):
    path = abspath(path)
    try:
        import Carbon.File
    except ImportError:
        return path
    if not path:
        return path
    colon = _get_colon(path)
    components = path.split(colon)
    path = components[0] + colon
    for c in components[1:]:
        path = join(path, c)
        try:
            path = Carbon.File.FSResolveAliasFile(path, 1)[0].as_pathname()
        except Carbon.File.Error:
            pass
    return path

supports_unicode_filenames = True


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
24 May 2024 8.36 AM
root / root
0755
__pycache__
--
24 May 2024 8.33 AM
root / linksafe
0755
collections
--
24 May 2024 8.33 AM
root / linksafe
0755
concurrent
--
24 May 2024 8.33 AM
root / linksafe
0755
config-3.3m
--
24 May 2024 8.36 AM
root / linksafe
0755
ctypes
--
24 May 2024 8.33 AM
root / linksafe
0755
curses
--
24 May 2024 8.33 AM
root / linksafe
0755
dbm
--
24 May 2024 8.33 AM
root / linksafe
0755
distutils
--
24 May 2024 8.33 AM
root / linksafe
0755
email
--
24 May 2024 8.33 AM
root / linksafe
0755
encodings
--
24 May 2024 8.33 AM
root / linksafe
0755
html
--
24 May 2024 8.33 AM
root / linksafe
0755
http
--
24 May 2024 8.33 AM
root / linksafe
0755
idlelib
--
24 May 2024 8.33 AM
root / linksafe
0755
importlib
--
24 May 2024 8.33 AM
root / linksafe
0755
json
--
24 May 2024 8.33 AM
root / linksafe
0755
lib-dynload
--
24 May 2024 8.33 AM
root / linksafe
0755
lib2to3
--
24 May 2024 8.33 AM
root / linksafe
0755
logging
--
24 May 2024 8.33 AM
root / linksafe
0755
multiprocessing
--
24 May 2024 8.33 AM
root / linksafe
0755
plat-linux
--
24 May 2024 8.33 AM
root / linksafe
0755
pydoc_data
--
24 May 2024 8.33 AM
root / linksafe
0755
site-packages
--
24 May 2024 8.33 AM
root / linksafe
0755
sqlite3
--
24 May 2024 8.33 AM
root / linksafe
0755
test
--
24 May 2024 8.33 AM
root / linksafe
0755
unittest
--
24 May 2024 8.33 AM
root / linksafe
0755
urllib
--
24 May 2024 8.33 AM
root / linksafe
0755
venv
--
24 May 2024 8.33 AM
root / linksafe
0755
wsgiref
--
24 May 2024 8.33 AM
root / linksafe
0755
xml
--
24 May 2024 8.33 AM
root / linksafe
0755
xmlrpc
--
24 May 2024 8.33 AM
root / linksafe
0755
__future__.py
4.477 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
__phello__.foo.py
0.063 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
_compat_pickle.py
4.236 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
_dummy_thread.py
4.657 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
_markupbase.py
14.256 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
_osx_support.py
18.413 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
_pyio.py
71.196 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
_strptime.py
21.166 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
_sysconfigdata.py
22.307 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
_threading_local.py
7.236 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
_weakrefset.py
5.571 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
abc.py
7.868 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
aifc.py
30.326 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
antigravity.py
0.464 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
argparse.py
86.981 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
ast.py
11.857 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
asynchat.py
11.316 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
asyncore.py
20.267 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
base64.py
13.658 KB
17 Apr 2024 4.58 PM
root / linksafe
0755
bdb.py
21.381 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
binhex.py
13.387 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
bisect.py
2.534 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
bz2.py
18.04 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
cProfile.py
6.212 KB
17 Apr 2024 4.58 PM
root / linksafe
0755
calendar.py
22.402 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
cgi.py
34.721 KB
17 Apr 2024 4.58 PM
root / linksafe
0755
cgitb.py
11.759 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
chunk.py
5.251 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
cmd.py
14.512 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
code.py
9.795 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
codecs.py
35.113 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
codeop.py
5.854 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
colorsys.py
3.604 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
compileall.py
9.515 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
configparser.py
48.278 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
contextlib.py
8.911 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
copy.py
8.78 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
copyreg.py
6.456 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
crypt.py
1.835 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
csv.py
15.806 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
datetime.py
73.197 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
decimal.py
223.201 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
difflib.py
80.585 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
dis.py
9.896 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
doctest.py
100.521 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
dummy_threading.py
2.749 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
filecmp.py
9.372 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fileinput.py
13.922 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fnmatch.py
3.089 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
formatter.py
14.58 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
fractions.py
22.493 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
ftplib.py
39.31 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
functools.py
13.277 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
genericpath.py
3.021 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
getopt.py
7.313 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
getpass.py
5.657 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
gettext.py
20.153 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
glob.py
2.771 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
gzip.py
23.831 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
hashlib.py
6.048 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
heapq.py
17.575 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
hmac.py
4.336 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
imaplib.py
48.937 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
imghdr.py
3.445 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
imp.py
9.499 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
inspect.py
77.109 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
io.py
3.203 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
ipaddress.py
68.655 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
keyword.py
2.012 KB
17 Apr 2024 4.58 PM
root / linksafe
0755
linecache.py
3.773 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
locale.py
91.03 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
lzma.py
17.045 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
macpath.py
5.485 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
macurl2path.py
2.668 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
mailbox.py
77.239 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
mailcap.py
7.263 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
mimetypes.py
20.249 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
modulefinder.py
22.654 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
netrc.py
5.612 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
nntplib.py
41.783 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
ntpath.py
19.958 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
nturl2path.py
2.34 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
numbers.py
10.154 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
opcode.py
4.979 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
optparse.py
58.932 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
os.py
33.964 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
os2emxpath.py
4.55 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
pdb.py
59.231 KB
17 Apr 2024 4.58 PM
root / linksafe
0755
pickle.py
46.736 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
pickletools.py
79.442 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
pipes.py
8.707 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
pkgutil.py
21.034 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
platform.py
49.553 KB
17 Apr 2024 4.58 PM
root / linksafe
0755
plistlib.py
14.431 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
poplib.py
11.105 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
posixpath.py
13.92 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
pprint.py
12.402 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
profile.py
20.945 KB
17 Apr 2024 4.58 PM
root / linksafe
0755
pstats.py
25.754 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
pty.py
4.937 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
py_compile.py
6.56 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
pyclbr.py
13.123 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
pydoc.py
99.262 KB
17 Apr 2024 4.58 PM
root / linksafe
0755
queue.py
8.628 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
quopri.py
7.144 KB
17 Apr 2024 4.58 PM
root / linksafe
0755
random.py
25.059 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
re.py
14.622 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
reprlib.py
4.99 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
rlcompleter.py
5.396 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
runpy.py
10.169 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
sched.py
6.249 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
shelve.py
8.05 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
shlex.py
11.232 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
shutil.py
38.229 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
site.py
21.456 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
smtpd.py
29.499 KB
17 Apr 2024 4.58 PM
root / linksafe
0755
smtplib.py
37.13 KB
17 Apr 2024 4.58 PM
root / linksafe
0755
sndhdr.py
6.073 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
socket.py
14.563 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
socketserver.py
23.629 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
sre_compile.py
15.962 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
sre_constants.py
7.062 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
sre_parse.py
29.504 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
ssl.py
23.904 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
stat.py
4.203 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
string.py
9.189 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
stringprep.py
12.614 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
struct.py
0.232 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
subprocess.py
65.994 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
sunau.py
17.112 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
symbol.py
2.003 KB
17 Apr 2024 4.58 PM
root / linksafe
0755
symtable.py
7.21 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
sysconfig.py
24.584 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
tabnanny.py
11.143 KB
17 Apr 2024 4.58 PM
root / linksafe
0755
tarfile.py
86.781 KB
17 Apr 2024 4.58 PM
root / linksafe
0755
telnetlib.py
26.708 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
tempfile.py
22.474 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
textwrap.py
16.102 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
this.py
0.979 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
threading.py
44.571 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
timeit.py
12.104 KB
17 Apr 2024 4.58 PM
root / linksafe
0755
token.py
2.963 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
tokenize.py
24.293 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
trace.py
30.749 KB
17 Apr 2024 4.58 PM
root / linksafe
0755
traceback.py
11.701 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
tty.py
0.858 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
types.py
3.093 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
uu.py
6.607 KB
17 Apr 2024 4.58 PM
root / linksafe
0755
uuid.py
21.825 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
warnings.py
13.501 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
wave.py
18.144 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
weakref.py
11.226 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
webbrowser.py
22.376 KB
17 Apr 2024 4.58 PM
root / linksafe
0755
xdrlib.py
5.255 KB
17 Apr 2024 4.58 PM
root / linksafe
0644
zipfile.py
64.867 KB
17 Apr 2024 4.58 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF