<menu id="guoca"></menu>
<nav id="guoca"></nav><xmp id="guoca">
  • <xmp id="guoca">
  • <nav id="guoca"><code id="guoca"></code></nav>
  • <nav id="guoca"><code id="guoca"></code></nav>

    certbot.plugins.util module

    Plugin utilities.

    certbot.plugins.util.``get_prefixes(path)[source]
    Retrieves all possible path prefixes of a path, in descending order of length. For instance,
    (linux) /a/b/c returns [‘/a/b/c’, ‘/a/b’, ‘/a’, ‘/’] (windows) C:abc returns [‘C:abc’, ‘C:ab’, ‘C:a’, ‘C:’]
    Parameters: path (str) – the path to break into prefixes
    Returns: all possible path prefixes of given path in descending order
    Return type: list of str

    certbot.plugins.util.``path_surgery(cmd)[source]
    Attempt to perform PATH surgery to find cmd
    Mitigates https://github.com/certbot/certbot/issues/1833
    Parameters: cmd (str) – the command that is being searched for in the PATH
    Returns: True if the operation succeeded, False otherwise

    本文章首發在 網安wangan.com 網站上。

    上一篇 下一篇
    討論數量: 0
    只看當前版本


    暫無話題~
    亚洲 欧美 自拍 唯美 另类