Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Java
  4. File Owner name

File Owner name

Scheduled Pinned Locked Moved Java
sysadminquestion
11 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K karyampudi

    Hi , let me know How do I get Owner name of a file which is located in FTP server. Thanks Hanuman

    Richard DeemingR Offline
    Richard DeemingR Offline
    Richard Deeming
    wrote on last edited by
    #2

    You have already posted this question: http://www.codeproject.com/Messages/5057462/How-do-I-get-Owner-name-of-a-file-which-is-located.aspx[^]


    "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

    "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

    1 Reply Last reply
    0
    • K karyampudi

      Hi , let me know How do I get Owner name of a file which is located in FTP server. Thanks Hanuman

      C Offline
      C Offline
      Chuty
      wrote on last edited by
      #3

      Hey try this one http://www.java2s.com/Code/Java/JDK-7/UsingsetOwner.htm[^]

      Indika

      K 1 Reply Last reply
      0
      • C Chuty

        Hey try this one http://www.java2s.com/Code/Java/JDK-7/UsingsetOwner.htm[^]

        Indika

        K Offline
        K Offline
        karyampudi
        wrote on last edited by
        #4

        Hi indika, I tried this one . Here we are giving local path. But my requirement is file is located in FTP server. please give me any advice. Thanks Hanuman

        L 1 Reply Last reply
        0
        • K karyampudi

          Hi indika, I tried this one . Here we are giving local path. But my requirement is file is located in FTP server. please give me any advice. Thanks Hanuman

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #5

          You already have a suggestion, you use the remote ls command. Check the documentation for the FTP protocol to see what options are available.

          K 1 Reply Last reply
          0
          • L Lost User

            You already have a suggestion, you use the remote ls command. Check the documentation for the FTP protocol to see what options are available.

            K Offline
            K Offline
            karyampudi
            wrote on last edited by
            #6

            By ls I am not getting any owner name of a file. please help me on the same. I am using apache commons net api for connection FTP. Thanks Hanuman

            L 1 Reply Last reply
            0
            • K karyampudi

              By ls I am not getting any owner name of a file. please help me on the same. I am using apache commons net api for connection FTP. Thanks Hanuman

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #7

              Try ls -l

              K 2 Replies Last reply
              0
              • L Lost User

                Try ls -l

                K Offline
                K Offline
                karyampudi
                wrote on last edited by
                #8

                Hi, by using java code we have to get file owner. not command prompt. please help me on the same. Q) How to get Owner name of a file which is located in FTP server. Thanks Hanuman

                L 1 Reply Last reply
                0
                • L Lost User

                  Try ls -l

                  K Offline
                  K Offline
                  karyampudi
                  wrote on last edited by
                  #9

                  Hi, by using java code we have to get file owner. not command prompt. please help me on the same. Thanks Hanuman

                  L 1 Reply Last reply
                  0
                  • K karyampudi

                    Hi, by using java code we have to get file owner. not command prompt. please help me on the same. Q) How to get Owner name of a file which is located in FTP server. Thanks Hanuman

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #10

                    I have already told you what the options are. If the server does not provide that information then you cannot access it. Did you try "ls -l" to see what information is provided?

                    1 Reply Last reply
                    0
                    • K karyampudi

                      Hi, by using java code we have to get file owner. not command prompt. please help me on the same. Thanks Hanuman

                      L Offline
                      L Offline
                      Lost User
                      wrote on last edited by
                      #11

                      Then you need to write a program that will access the information on the FTP server, probably via sockets. Although you will need to understand the FTP protocol, as documented in https://tools.ietf.org/html/rfc959[^].

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups