How to change file permissions using java

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pramod12
    New Member
    • Aug 2007
    • 2

    How to change file permissions using java

    Hi i wanted to know if there is a java API for changing file permissions for a file on linux OS
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by pramod12
    Hi i wanted to know if there is a java API for changing file permissions for a file on linux OS
    I bet you haven't read the API docs for the File class.

    kind regards,

    Jos

    Comment

    • pramod12
      New Member
      • Aug 2007
      • 2

      #3
      Originally posted by JosAH
      I bet you haven't read the API docs for the File class.

      kind regards,

      Jos
      Which file API are you taking about i want to change owner and group permissions of a file

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #4
        Originally posted by pramod12
        Which file API are you taking about i want to change owner and group permissions of a file
        Google would have easily given you want you're looking for. Just search for File.java

        The Java articles index also has a link to the API docs. Bookmark it.

        Comment

        • JosAH
          Recognized Expert MVP
          • Mar 2007
          • 11453

          #5
          Originally posted by pramod12
          Which file API are you taking about i want to change owner and group permissions of a file
          Ahem, second attempt: have you read the API documentation for the File class?
          Hint: pay special attention to the class name in boldface.

          kind regards,

          Jos

          Comment

          • r035198x
            MVP
            • Sep 2006
            • 13225

            #6
            Originally posted by JosAH
            Ahem, second attempt: have you read the API documentation for the File class?
            Hint: pay special attention to the class name in boldface.

            kind regards,

            Jos
            We should have audio streaming software here. Then people don't have to read what's posted.

            Comment

            • JosAH
              Recognized Expert MVP
              • Mar 2007
              • 11453

              #7
              Originally posted by r035198x
              We should have audio streaming software here. Then people don't have to read what's posted.
              You're being too optimistic again: you're assuming that they can *listen* ;-)

              kind regards,

              Jos

              Comment

              Working...