Python Standard Library

Table of Contents

  • Ch 01 - 10
  • Ch 11 - 20
  • Ch 21 - 30
  • Ch 31 - 37
  • api
    • 06 Built-in Exceptions
    • 07 String Services
    • 08 Data Types
    • 09 Numeric and Mathematical Methods
    • 10 File and Directory Access
    • 11 Data Persistence
    • 12 Data Compression and Archiving
      • zlib
      • gzip
      • bz2
      • zipfile
      • tarfile
        • Functions
        • Classes
          • tarfile.ExFileObject
          • tarfile.TarFile
            • Methods
              • tarfile.TarFile.__enter__
              • tarfile.TarFile.__exit__
              • tarfile.TarFile.__format__
              • tarfile.TarFile.__init__
              • tarfile.TarFile.__iter__
              • tarfile.TarFile.__new__
              • tarfile.TarFile.__reduce__
              • tarfile.TarFile.__reduce_ex__
              • tarfile.TarFile.__sizeof__
              • tarfile.TarFile.__subclasshook__
              • tarfile.TarFile._check
              • tarfile.TarFile._dbg
              • tarfile.TarFile._extract_member
              • tarfile.TarFile._find_link_target
              • tarfile.TarFile._getmember
              • tarfile.TarFile._getposix
              • tarfile.TarFile._load
              • tarfile.TarFile._setposix
              • tarfile.TarFile.add
              • tarfile.TarFile.addfile
              • tarfile.TarFile.bz2open
              • tarfile.TarFile.chmod
              • tarfile.TarFile.chown
              • tarfile.TarFile.close
              • tarfile.TarFile.extract
              • tarfile.TarFile.extractall
              • tarfile.TarFile.extractfile
              • tarfile.TarFile.getmember
              • tarfile.TarFile.getmembers
              • tarfile.TarFile.getnames
              • tarfile.TarFile.gettarinfo
              • tarfile.TarFile.gzopen
              • tarfile.TarFile.list
              • tarfile.TarFile.makedev
              • tarfile.TarFile.makedir
              • tarfile.TarFile.makefifo
              • tarfile.TarFile.makefile
              • tarfile.TarFile.makelink
              • tarfile.TarFile.makeunknown
              • tarfile.TarFile.next
              • tarfile.TarFile.open
              • tarfile.TarFile.taropen
              • tarfile.TarFile.utime
            • Attributes
          • tarfile.TarFileCompat
          • tarfile.TarInfo
          • tarfile.TarIter
        • Exceptions
    • 13 File Formats
    • 14 Cryptographic Services
    • 15 Generic Operating System Services
    • 16 Optional Operating System Services
    • 17 Interprocess Communication and Networking
    • 18 Internet Data Handling
    • 19 Structured Markup Processing Tools
    • 20 Internet Protocols and Support
    • 21 Multimedia Services
    • 22 Internationalization
    • 23 Program Frameworks
    • 24 Graphical User Interfaces with Tk
    • 25 Development Tools
    • 26 Debugging and Profiling
    • 27 Software Packaging and Distribution
    • 28 Python Runtime Services
    • 29 Custom Python Interpreters
    • 30 Restricted Execution
    • 31 Importing Modules
    • 32 Python Language Services
    • 33 (depr) Python compiler package
    • 34 Miscellaneous Services
    • 35 MS Windows Specific Services
    • 36. Unix Specific Services
    • 37 Mac OS X specific services
Python Standard Library
  • Docs »
  • api »
  • tarfile »
  • tarfile.TarFile »
  • tarfile.TarFile.makelink
  • View page source

tarfile.TarFile.makelink¶

TarFile.makelink(tarinfo, targetpath)[source]¶

Make a (symbolic) link called targetpath. If it cannot be created (platform limitation), we try to make a copy of the referenced file instead of a link.

Next Previous

© Copyright 2016.

Built with Sphinx using a theme provided by Read the Docs.