Ticket #1322 (closed RFC: fixed)

Opened 12 years ago

Last modified 12 years ago

[RFC] OS.chmod & FileHandle.fchmod

Reported by: fperrad Owned by:
Priority: normal Milestone: 2.2
Component: core Version: 1.8.0
Severity: medium Keywords:
Cc: Language:
Patch status: Platform: all


Currently, there are no way to modify file permission bits.

For example, in distutils.pir, I use :

$I0 = spawnw 'perl -MExtUtils::Command -e ExtUtils::Command::chmod 0755 filename'

We could wrap POSIX C functions :

  • in OS PMC, a method chmod(path, mode)


  • in FileHandle PMC, a method fchmod(mode)

Change History

Changed 12 years ago by chromatic

  • milestone changed from 2.0 to 2.1

Changed 12 years ago by fperrad

  • status changed from new to closed
  • resolution set to fixed

OS.chmod() added in 45983

Note: See TracTickets for help on using tickets.