qt-interest@trolltech.com
[Top] [All Lists]

RE: QT 3.3.7, QDir, and Network directories

Subject: RE: QT 3.3.7, QDir, and Network directories
From: <>
Date: Fri, 22 Aug 2008 14:56:52 +0800
Is there any other mechanism from QT that takes in a URI and lists the files in 
the directory?

-----Original Message-----
From: Thiago Macieira [mailto:thiago.macieira@xxxxxxxxxxxxx] 
Sent: Thursday, August 21, 2008 11:54 PM
To: qt-interest@xxxxxxxxxxxxx
Subject: Re: QT 3.3.7, QDir, and Network directories

Ashwin.Chandra@xxxxxxxxx wrote:
>Hello,
>
>I am trying to get a list of all the files in a network directory. QDir
>doesn't seem to recognize a network directory path, for example:
>"smb://network-share/files". Passing this URI into QDir yields a count
>of 0 files. Is there anyway in QT 3.3.7, to query files in a network
>directory (over samba for instance)?

QDir takes a file path, not a URL.

You will have to mount those SMB shares first, before you can use QDir.

-- 
Thiago José Macieira - thiago.macieira AT trolltech.com
Trolltech, a Nokia Company
Sandakerveien 116, NO-0402 Oslo, Norway

--
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with 
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/

<Prev in Thread] Current Thread [Next in Thread>