Unsolved File is not open with network file path in NAS file System
-
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. -
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? -
@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.
-
@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.
-
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. -
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
-
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.
-
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 ?