def cs_encode(value):
    if isinstance(value, int):
        value = str(value)
    elif PY2 and isinstance(value, text_type):
        value = value.encode('utf-8')
    return quote(value, safe=".-*_")
Retrieves a file-like object for a path specification.
dataset/ETHPy150Open exoscale/cs/cs.py/cs_encode--crossover with--dataset/ETHPy150Open log2timeline/dfvfs/dfvfs/vfs/file_system.py/FileSystem.GetFileObjectByPathSpec