Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/third_party/chromium/build/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 716 B image not shown  

Quelle  get_symlink_targets.py   Sprache: Python

 
#!/usr/bin/env python
# Copyright (c) 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Prints the target paths of the given symlinks.

Prints out each target in the order that the links were passed in.
"""

import os
import sys


def main():
  for link_name in sys.argv[1:]:
    if not os.path.islink(link_name):
      sys.stderr.write("%s is not a link" % link_name)
      return 1
    target = os.readlink(link_name)
    if not os.path.isabs(target):
      target = os.path.join(os.path.dirname(link_name), target)
    print(os.path.realpath(target))
  return 0


if __name__ == '__main__':
  sys.exit(main())

Messung V0.5
C=86 H=86 G=85

¤ Dauer der Verarbeitung: 0.2 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.