s_directory(path) returns false in windows , path do exist
Hello all im new to boost::filesystem and im trying to run simple test on checking folder existence on windows 2k but even so the folder do excites im getting false from is_directory(path) what im doing wrong here ? #include "boost/filesystem.hpp" // includes all needed Boost.Filesystem declarations using namespace boost::filesystem; path path("I:\\ddd\\ccc\\",boost::filesystem::native); or path path("I:/ddd/ccc/"); or path path("I:\\ddd\\ccc\\"; if(is_directory(path)){ printf("is"); }else{ printf("none"); } what im doing wrong here?
Does it work without the trailing slash (I:/ddd/ccc) ?> Date: Sat, 10 May 2008 17:13:16 +0200> From: meiry242@gmail.com> To: boost-users@lists.boost.org> Subject: [Boost-users] s_directory(path) returns false in windows , path do exist> > Hello all> im new to boost::filesystem and im trying to run simple test on> checking folder existence> on windows 2k but even so the folder do excites im getting false from> is_directory(path)> what im doing wrong here ?> > #include "boost/filesystem.hpp" // includes all needed> Boost.Filesystem declarations> using namespace boost::filesystem;> path path("I:\\ddd\\ccc\\",boost::filesystem::native);> or> path path("I:/ddd/ccc/");> or> path path("I:\\ddd\\ccc\\";> > if(is_directory(path)){> printf("is");> }else{> printf("none");> }> > what im doing wrong here?> _______________________________________________> Boost-users mailing list> Boost-users@lists.boost.org> http://lists.boost.org/mailman/listinfo.cgi/boost-users _________________________________________________________________ Connect to the next generation of MSN Messenger http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline
Hi Igor! On Sat, May 10, 2008 at 09:08:36PM +0300, Igor R. wrote:
Does it work without the trailing slash (I:/ddd/ccc) ?> Date: Sat, 10 May 2008 17:13:16 +0200> From: meiry242@gmail.com> To: boost-users@lists.boost.org> Subject: [Boost-users] s_directory(path) returns false in windows , path do exist> > Hello all> im new to boost::filesystem and im trying to run simple test on> checking folder existence> on windows 2k but even so the folder do excites im getting false from> is_directory(path)> what im doing wrong here ?> > #include "boost/filesystem.hpp" // includes all needed> Boost.Filesystem declarations> using namespace boost::filesystem;> path path("I:\\ddd\\ccc\\",boost::filesystem::native);> or> path path("I:/ddd/ccc/");> or> path path("I:\\ddd\\ccc\\";> > if(is_directory(path)){> printf("is");> }else{> printf("none");> }> > what im doing wrong here?> _______________________________________________> Boost-users mailing list> Boost-users@lists.boost.org> http://lists.boost.org/mailman/listinfo.cgi/boost-users _________________________________________________________________ Connect to the next generation of MSN Messenger http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline
Please stop sending garbage to this list! Configure your mail client properly and also disable HTML attachments. After this test it! Jens
Jens, What kind of garbage do you see? I've sent a test message from this account to another one, and I don't see anything suspicious, except the hotmail ads in the message footer...
Hi Igor! Please stop sending garbage to this list! Configure your mail client properly and also disable HTML attachments. After this test it!
_________________________________________________________________ Explore the seven wonders of the world http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE
AMDG Igor R. wrote:
Jens, What kind of garbage do you see? I've sent a test message from this account to another one, and I don't see anything suspicious, except the hotmail ads in the message footer...
It only looks like garbage to those who view messages as plain text. In Christ, Steven Watanabe
Am Samstag 10 Mai 2008 22:15:11 schrieb Steven Watanabe:
Igor R. wrote:
Jens, What kind of garbage do you see? I've sent a test message from this account to another one, and I don't see anything suspicious, except the hotmail ads in the message footer...
It only looks like garbage to those who view messages as plain text.
I case of KMail html content is usually recognised. Igors mail isn't. -- Maik
hi
can you please help me here ...
why i can't do basic operation with boost filesystem ?
can i open some kind of loggers in boost or something to see what is wrong ?
thanks
On Sat, May 10, 2008 at 11:23 PM, Maik Beckmann
Am Samstag 10 Mai 2008 22:15:11 schrieb Steven Watanabe:
Igor R. wrote:
Jens, What kind of garbage do you see? I've sent a test message from this account to another one, and I don't see anything suspicious, except the hotmail ads in the message footer...
It only looks like garbage to those who view messages as plain text.
I case of KMail html content is usually recognised. Igors mail isn't.
-- Maik
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
someone?
On Sun, May 11, 2008 at 9:12 AM, Meir Yanovich
hi can you please help me here ... why i can't do basic operation with boost filesystem ? can i open some kind of loggers in boost or something to see what is wrong ? thanks
On Sat, May 10, 2008 at 11:23 PM, Maik Beckmann
wrote: Am Samstag 10 Mai 2008 22:15:11 schrieb Steven Watanabe:
Igor R. wrote:
Jens, What kind of garbage do you see? I've sent a test message from this account to another one, and I don't see anything suspicious, except the hotmail ads in the message footer...
It only looks like garbage to those who view messages as plain text.
I case of KMail html content is usually recognised. Igors mail isn't.
-- Maik
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
yeah its valid path
On Sun, May 11, 2008 at 5:28 PM, Ovanes Markarian
Did you try to debug your code? What is path after is was created? Does it contain a valid path string?
just try to std::cout << path.file_string();
Regards, Ovanes
On Sun, May 11, 2008 at 3:12 PM, Meir Yanovich
wrote: someone?
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Would be great if you would provide more info and not a statement that it is
valid. Due to this info the list members could make their own assumptions.
What is the output in std::cout for your path? attach may be a small test
app which fails or send to my private email Visual Studio Project.
On Sun, May 11, 2008 at 7:03 PM, Meir Yanovich
yeah its valid path
On Sun, May 11, 2008 at 5:28 PM, Ovanes Markarian
wrote: Did you try to debug your code? What is path after is was created? Does
it
contain a valid path string?
just try to std::cout << path.file_string();
Regards, Ovanes
sure the output is :
I:\ddd\ccc
the program is:
#include <iostream>
#include "boost/filesystem.hpp"
using namespace boost::filesystem;
using namespace std;
int main(int argc, char* argv[])
{
path path("I:/ddd/ccc",native);
cout << path.file_string();
if(exists(path)){
printf("is");
}else{
printf("none");
}
return 0;
}
On Sun, May 11, 2008 at 7:49 PM, Ovanes Markarian
Would be great if you would provide more info and not a statement that it is valid. Due to this info the list members could make their own assumptions.
What is the output in std::cout for your path? attach may be a small test app which fails or send to my private email Visual Studio Project.
On Sun, May 11, 2008 at 7:03 PM, Meir Yanovich
wrote: yeah its valid path
On Sun, May 11, 2008 at 5:28 PM, Ovanes Markarian
wrote: Did you try to debug your code? What is path after is was created? Does
it
contain a valid path string?
just try to std::cout << path.file_string();
Regards, Ovanes
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Meir Yanovich:
sure the output is : I:\ddd\ccc the program is: #include <iostream> #include "boost/filesystem.hpp" using namespace boost::filesystem; using namespace std;
int main(int argc, char* argv[]) { path path("I:/ddd/ccc",native); cout << path.file_string(); if(exists(path)){ printf("is"); }else{ printf("none"); } return 0; }
Hmm, I created a folder C:\ddd\ccc and ran your code exactly as it is. The result: C:\ddd\cccis So it works! (and your missing a newline in your output) Is I: a network drive? If so, have you verified that it is connected? -- John
no its not network drive
what else can i check ?
On Mon, May 12, 2008 at 1:35 AM, John Femiani
Meir Yanovich:
sure the output is : I:\ddd\ccc the program is: #include <iostream> #include "boost/filesystem.hpp" using namespace boost::filesystem; using namespace std;
int main(int argc, char* argv[]) { path path("I:/ddd/ccc",native); cout << path.file_string(); if(exists(path)){ printf("is"); }else{ printf("none"); } return 0; }
Hmm,
I created a folder C:\ddd\ccc and ran your code exactly as it is. The result:
C:\ddd\cccis
So it works! (and your missing a newline in your output)
Is I: a network drive? If so, have you verified that it is connected?
-- John
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
do u use Microsoft Visual C++ 2005 Express Edition?
boost_1_34_1,libboost_filesystem-vc80-mt-1_34_1.lib?
can you check with this setup?
thanks
On Mon, May 12, 2008 at 9:45 AM, Meir Yanovich
no its not network drive what else can i check ?
On Mon, May 12, 2008 at 1:35 AM, John Femiani
wrote: Meir Yanovich:
sure the output is : I:\ddd\ccc the program is: #include <iostream> #include "boost/filesystem.hpp" using namespace boost::filesystem; using namespace std;
int main(int argc, char* argv[]) { path path("I:/ddd/ccc",native); cout << path.file_string(); if(exists(path)){ printf("is"); }else{ printf("none"); } return 0; }
Hmm,
I created a folder C:\ddd\ccc and ran your code exactly as it is. The result:
C:\ddd\cccis
So it works! (and your missing a newline in your output)
Is I: a network drive? If so, have you verified that it is connected?
-- John
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Yes, 1.34.1, installed by the installer, I used Visual Studio 2005, and I copied your code exactly except for changing 'I' to 'C'. The project is attached, perhaps you can poke around and see what might be different. -- John
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Meir Yanovich Sent: Sunday, May 11, 2008 11:49 PM To: boost-users@lists.boost.org Subject: Re: [Boost-users] s_directory(path) returns false in windows ,path do exist
do u use Microsoft Visual C++ 2005 Express Edition? boost_1_34_1,libboost_filesystem-vc80-mt-1_34_1.lib? can you check with this setup? thanks
On Mon, May 12, 2008 at 9:45 AM, Meir Yanovich
wrote: no its not network drive what else can i check ?
On Mon, May 12, 2008 at 1:35 AM, John Femiani
wrote: Meir Yanovich:
sure the output is : I:\ddd\ccc the program is: #include <iostream> #include "boost/filesystem.hpp" using namespace boost::filesystem; > > using
namespace std; >
int main(int argc, char* argv[]) > > { path path("I:/ddd/ccc",native); cout << path.file_string(); if(exists(path)){ printf("is"); }else{ printf("none"); } return 0; }
Hmm,
I created a folder C:\ddd\ccc and ran your code exactly as it is. The result:
C:\ddd\cccis
So it works! (and your missing a newline in your output) > > > Is I: a network drive? If so, have you verified that it is connected?
-- John
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
hi
your example do work
the difference i notice is thatyou do not define static lib to compile with
like i
why is that ?
On Mon, May 12, 2008 at 10:34 AM, John Femiani
Yes, 1.34.1, installed by the installer, I used Visual Studio 2005, and I copied your code exactly except for changing 'I' to 'C'.
The project is attached, perhaps you can poke around and see what might be different.
-- John
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Meir Yanovich
Sent: Sunday, May 11, 2008 11:49 PM To: boost-users@lists.boost.org Subject: Re: [Boost-users] s_directory(path) returns false in windows ,path do exist
do u use Microsoft Visual C++ 2005 Express Edition? boost_1_34_1,libboost_filesystem-vc80-mt-1_34_1.lib? can you check with this setup? thanks
On Mon, May 12, 2008 at 9:45 AM, Meir Yanovich
wrote: no its not network drive what else can i check ?
On Mon, May 12, 2008 at 1:35 AM, John Femiani
wrote: Meir Yanovich:
sure the output is : I:\ddd\ccc the program is: #include <iostream> #include "boost/filesystem.hpp" using namespace boost::filesystem; > > using
namespace std; >
int main(int argc, char* argv[]) > > { path path("I:/ddd/ccc",native); cout << path.file_string(); if(exists(path)){ printf("is"); }else{ printf("none"); } return 0; }
Hmm,
I created a folder C:\ddd\ccc and ran your code exactly as it is. The result:
C:\ddd\cccis
So it works! (and your missing a newline in your output) > > > Is I: a network drive? If so, have you verified that it is connected?
-- John
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Boost.Config automatically chooses the proper library for me (arent they great?) With boost in msvc, you never need to specify which boost library to link with. Microsoft has issues with a lot of incompatible ABIs, so they added a pragma that allows header files to specify which library to link with from within the code. Boost uses this to make the lives of us unfortunate windows programmers a little easier ;) -- John
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Meir Yanovich Sent: Monday, May 12, 2008 1:26 AM To: boost-users@lists.boost.org Subject: Re: [Boost-users] s_directory(path) returns false in windows ,path do exist
hi your example do work the difference i notice is thatyou do not define static lib to compile with like i why is that ?
On Mon, May 12, 2008 at 10:34 AM, John Femiani
wrote: Yes, 1.34.1, installed by the installer, I used Visual
Studio 2005,
and I copied your code exactly except for changing 'I' to 'C'.
The project is attached, perhaps you can poke around and see what might be different.
-- John
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of > Meir Yanovich
Sent: Sunday, May 11, 2008 11:49 PM To: boost-users@lists.boost.org Subject: Re: [Boost-users] s_directory(path) returns false in > windows ,path do exist >
do u use Microsoft Visual C++ 2005 Express Edition? boost_1_34_1,libboost_filesystem-vc80-mt-1_34_1.lib? can you check with this setup? thanks
On Mon, May 12, 2008 at 9:45 AM, Meir Yanovich >
wrote: no its not network drive what else can i check ?
On Mon, May 12, 2008 at 1:35 AM, John Femiani >
wrote: Meir Yanovich:
sure the output is : I:\ddd\ccc the program is: #include <iostream> #include "boost/filesystem.hpp" using namespace boost::filesystem; > > using
namespace std; > > > > > > int main(int argc, char* argv[]) > > {
path path("I:/ddd/ccc",native); cout << path.file_string(); if(exists(path)){ printf("is"); }else{ printf("none"); } return 0; }
Hmm,
I created a folder C:\ddd\ccc and ran your code exactly > as it is. The result:
C:\ddd\cccis
So it works! (and your missing a newline in your output)
> Is I: a network drive? If so, have you verified that it is connected?
-- John
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
i didnt know that ...
thanks allot for your help !
(:
On Mon, May 12, 2008 at 11:33 AM, John Femiani
Boost.Config automatically chooses the proper library for me (arent they great?)
With boost in msvc, you never need to specify which boost library to link with.
Microsoft has issues with a lot of incompatible ABIs, so they added a pragma that allows header files to specify which library to link with from within the code. Boost uses this to make the lives of us unfortunate windows programmers a little easier ;)
-- John
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Meir Yanovich
Sent: Monday, May 12, 2008 1:26 AM To: boost-users@lists.boost.org Subject: Re: [Boost-users] s_directory(path) returns false in windows ,path do exist
hi your example do work the difference i notice is thatyou do not define static lib to compile with like i why is that ?
On Mon, May 12, 2008 at 10:34 AM, John Femiani
wrote: Yes, 1.34.1, installed by the installer, I used Visual
Studio 2005,
and I copied your code exactly except for changing 'I' to 'C'.
The project is attached, perhaps you can poke around and see what might be different.
-- John
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of > Meir Yanovich
Sent: Sunday, May 11, 2008 11:49 PM To: boost-users@lists.boost.org Subject: Re: [Boost-users] s_directory(path) returns false in > windows ,path do exist >
do u use Microsoft Visual C++ 2005 Express Edition? boost_1_34_1,libboost_filesystem-vc80-mt-1_34_1.lib? can you check with this setup? thanks
On Mon, May 12, 2008 at 9:45 AM, Meir Yanovich >
wrote: no its not network drive what else can i check ?
On Mon, May 12, 2008 at 1:35 AM, John Femiani >
wrote: Meir Yanovich:
> > sure the output is : > I:\ddd\ccc > the program is: > #include <iostream> > #include "boost/filesystem.hpp" > using namespace boost::filesystem; > > using namespace std; > > > > > > int main(int argc, char* argv[]) > > { > path path("I:/ddd/ccc",native); > cout << path.file_string(); > if(exists(path)){ > printf("is"); > }else{ > printf("none"); > } > return 0; > } >
Hmm,
I created a folder C:\ddd\ccc and ran your code exactly > as it is. The result:
C:\ddd\cccis
So it works! (and your missing a newline in your output) > > Is I: a network drive? If so, have you verified that it is connected?
-- John
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Am Samstag 10 Mai 2008 22:05:53 schrieb Igor R.:
Jens, What kind of garbage do you see? I've sent a test message from this account to another one, and I don't see anything suspicious, except the hotmail ads in the message footer...
Hello Igor, See your post at marc.info - http://marc.info/?l=boost-users&m=121044293323094&w=2 to see what Jens is referring to, while this is what you intended - http://thread.gmane.org/gmane.comp.lib.boost.user/35639/focus=35644 At my email client I see something similar to which marc.info shows and most likely this is valid for many others out there. -- Maik
no nothing not working ...
im on win2k using libboost_filesystem-vc80-mt-1_34_1.lib
2008/5/10 Igor R.
Does it work without the trailing slash (I:/ddd/ccc) ?
Date: Sat, 10 May 2008 17:13:16 +0200 From: meiry242@gmail.com To: boost-users@lists.boost.org Subject: [Boost-users] s_directory(path) returns false in windows , path do exist
Hello all im new to boost::filesystem and im trying to run simple test on checking folder existence on windows 2k but even so the folder do excites im getting false from is_directory(path) what im doing wrong here ?
#include "boost/filesystem.hpp" // includes all needed Boost.Filesystem declarations using namespace boost::filesystem; path path("I:\\ddd\\ccc\\",boost::filesystem::native); or path path("I:/ddd/ccc/"); or path path("I:\\ddd\\ccc\\";
if(is_directory(path)){ printf("is"); }else{ printf("none"); }
what im doin g wrong here? _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
________________________________ Connect to the next generation of MSN Messenger Get it now! _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (7)
-
Igor R.
-
Jens Seidel
-
John Femiani
-
Maik Beckmann
-
Meir Yanovich
-
Ovanes Markarian
-
Steven Watanabe