Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. File is not open with network file path in NAS file System
Forum Updated to NodeBB v4.3 + New Features

File is not open with network file path in NAS file System

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 4 Posters 2.5k Views 4 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.
  • P Offline
    P Offline
    Parth Shah
    wrote on last edited by Parth Shah
    #1

    Hello

    QFile file(filePath + ":DeveloperData:$DATA");
    if (file.open(QIODevice::WriteOnly)) // file is not open with network path in nas file system
    {
    }

    In above code Snippet, we open file with network path of NAS file System. but we could not open this file. anyone knows about regarding this issue.

    Please let me help, if you have idea about that.

    Thanks in advance.

    Regards
    Parth Shah.

    K 2 Replies Last reply
    0
    • P Parth Shah

      Hello

      QFile file(filePath + ":DeveloperData:$DATA");
      if (file.open(QIODevice::WriteOnly)) // file is not open with network path in nas file system
      {
      }

      In above code Snippet, we open file with network path of NAS file System. but we could not open this file. anyone knows about regarding this issue.

      Please let me help, if you have idea about that.

      Thanks in advance.

      Regards
      Parth Shah.

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @Parth-Shah

      Hi and welcome to devnet forum

      What is the OS and programming language you are using?

      The file name is obviously generated throughout processing. Can you open teh file, when you are using the generated filename directly?
      Have you checked the correctness of the file name?

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      2
      • P Offline
        P Offline
        Parth Shah
        wrote on last edited by
        #3

        @koahnig said in File is not open with network file path in NAS file System:

        file name is obviously generated throughout processing. Can you open teh file, when you are using the generated filename directly?
        Have you checked the correctness of the file name?

        yes, file name is correct. we are use to windows 10 ; create file using Qfile object with C++.

        Thanks.

        1 Reply Last reply
        0
        • P Parth Shah

          Hello

          QFile file(filePath + ":DeveloperData:$DATA");
          if (file.open(QIODevice::WriteOnly)) // file is not open with network path in nas file system
          {
          }

          In above code Snippet, we open file with network path of NAS file System. but we could not open this file. anyone knows about regarding this issue.

          Please let me help, if you have idea about that.

          Thanks in advance.

          Regards
          Parth Shah.

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

          @Parth-Shah said in File is not open with network file path in NAS file System:

          QFile file(filePath + ":DeveloperData:$DATA");

          This does not look like anything that could result in a windows compatible file name. There is probably the problem. The only explanation I have the that this files name is going to be translated by a special driver, when used with other applications.

          You may want to check with fileName() what QFile makes out of your "file name" supplied. AFAIK QFile takes file name according to general OS rules.

          Vote the answer(s) that helped you to solve your issue(s)

          1 Reply Last reply
          0
          • P Offline
            P Offline
            Parth Shah
            wrote on last edited by
            #5

            Hi

            Thank you so much for your reply, but we need to write some attribute in file. that's why we have to add this string with file path. its is working fine with simple location path like (D:\Abc) but it could not working in server path with NAS file System.

            do you have any idea regarding that.

            Thanks

            Regards
            Parth Shah.

            K 1 Reply Last reply
            0
            • P Parth Shah

              Hi

              Thank you so much for your reply, but we need to write some attribute in file. that's why we have to add this string with file path. its is working fine with simple location path like (D:\Abc) but it could not working in server path with NAS file System.

              do you have any idea regarding that.

              Thanks

              Regards
              Parth Shah.

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

              @Parth-Shah

              This is more a user's forum. Not sure if you find anyone here being to able to help. For sure this goes beyond my expertize.

              Possibly you can raise the question in the developer's forum

              Vote the answer(s) that helped you to solve your issue(s)

              1 Reply Last reply
              1
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                Hi and welcome to devnet,

                Can you show an example of path you are using and that fails ?

                You should also take a look at the bug report system to see if there's anything related.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                2
                • mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by mrjj
                  #8

                  Hi
                  Are you sure that a NAS box will support this system?

                  You say it works locally in windows 10, so whatever that syntax is ":DeveloperData:$DATA"
                  then why would a NAS box understand it ?

                  1 Reply Last reply
                  2

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved