#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2005
    Location
    Raleigh NC
    Posts
    89
    Rep Power
    9

    folder permissions


    what is the command to check to see if the current directory has writable permissioned enabled for the current user?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2004
    Posts
    394
    Rep Power
    51
    Hi!

    There is os.access():
    Code:
    import os
    os.access(path_to_folder, os.W_OK)   # -> True or False
    Regards, mawe

IMN logo majestic logo threadwatch logo seochat tools logo