jaraco/path

Maximize compatibility with `pathlib.Path`

Aperta

#214 aperta il 7 lug 2023

 (7 commenti) (0 reazioni) (0 assegnatari)Python (151 fork)github user discovery
help wanted

Metriche repository

Star
 (1125 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

This project does aspire to align with pathlib where possible, so it should probably do the same (and probably implement iterdir at the same time, if it's not present already).

Originally posted by @jaraco in https://github.com/jaraco/path/issues/212#issuecomment-1623882608

Here some other methods that are worth considering:

set(vars(pathlib.Path)) - set(vars(path.Path)) 
Out[9]: 
{'__slots__',
 '_make_child_relpath',
 '_scandir',
 'absolute',
 'cwd',
 'group',
 'hardlink_to',
 'home',
 'is_block_device',
 'is_char_device',
 'is_dir',
 'is_fifo',
 'is_file',
 'is_mount',
 'is_socket',
 'is_symlink',
 'iterdir',
 'lchmod',
 'link_to',
 'replace',
 'resolve',
 'rglob',
 'symlink_to'}
  • absolute
  • cwd
  • group
  • hardlink_to
  • home
  • is_block_device
  • is_char_device
  • is_dir
  • is_fifo
  • is_file
  • is_mount
  • is_socket
  • is_symlink
  • iterdir
  • lchmod
  • link_to
  • owner
  • replace
  • resolve
  • rglob
  • suffix
  • symlink_to
  • with_stem
  • with_name

Guida contributor