Hi
On a freewrap generated application "file isdirectory <dir>" doesn't work.
On directorys from freewarp it works.
% file isdirectory /zvfs/themes/black
1
On dierectorys I wraped in the application it doesn't. I always get a 0.
% file isdirectory /zvfs/start0/freewrap/wrap
0
But "/zvfs/start0/freewrap/wrap" is a directory.
With glob I see the file in the directory.
% glob /zvfs/start0/freewrap/wrap/*
/zvfs/start0/freewrap/wrap/start.tcl
It's on window and linux the same.Why do you need to use a [file isdirectory] command on a directory that you have wrapped yourself. It seems you would already know whether it was a directory since you wrapped the files yourself.
Is there a workaround?
Regards
Manfred
On Wednesday, April 19, 2023 at 1:01:11 PM UTC-4, Manfred Stelzhammer wrote:
HiWhy do you need to use a [file isdirectory] command on a directory that you have wrapped yourself. It seems you would already know whether it was a directory since you wrapped the files yourself.
On a freewrap generated application "file isdirectory <dir>" doesn't work. >>
On directorys from freewarp it works.
% file isdirectory /zvfs/themes/black
1
On dierectorys I wraped in the application it doesn't. I always get a 0.
% file isdirectory /zvfs/start0/freewrap/wrap
0
But "/zvfs/start0/freewrap/wrap" is a directory.
With glob I see the file in the directory.
% glob /zvfs/start0/freewrap/wrap/*
/zvfs/start0/freewrap/wrap/start.tcl
It's on window and linux the same.
Is there a workaround?
Regards
Manfred
Dennis
Hi
I wrap some libs into my application, who use this command.
regardsManfred,
Manfred
Am 30.04.23 um 01:52 schrieb gone2c...@gmail.com:
On Wednesday, April 19, 2023 at 1:01:11 PM UTC-4, Manfred Stelzhammer wrote:
HiWhy do you need to use a [file isdirectory] command on a directory that you have wrapped yourself. It seems you would already know whether it was a directory since you wrapped the files yourself.
On a freewrap generated application "file isdirectory <dir>" doesn't work.
On directorys from freewarp it works.
% file isdirectory /zvfs/themes/black
1
On dierectorys I wraped in the application it doesn't. I always get a 0. >>
% file isdirectory /zvfs/start0/freewrap/wrap
0
But "/zvfs/start0/freewrap/wrap" is a directory.
With glob I see the file in the directory.
% glob /zvfs/start0/freewrap/wrap/*
/zvfs/start0/freewrap/wrap/start.tcl
It's on window and linux the same.
Is there a workaround?
Regards
Manfred
Dennis
On Sunday, April 30, 2023 at 4:35:59 AM UTC-4, Manfred Stelzhammer wrote:
HiManfred,
I wrap some libs into my application, who use this command.
regards
Manfred
Am 30.04.23 um 01:52 schrieb gone2c...@gmail.com:
On Wednesday, April 19, 2023 at 1:01:11 PM UTC-4, Manfred Stelzhammer wrote:
HiWhy do you need to use a [file isdirectory] command on a directory that you have wrapped yourself. It seems you would already know whether it was a directory since you wrapped the files yourself.
On a freewrap generated application "file isdirectory <dir>" doesn't work. >>>>
On directorys from freewarp it works.
% file isdirectory /zvfs/themes/black
1
On dierectorys I wraped in the application it doesn't. I always get a 0. >>>>
% file isdirectory /zvfs/start0/freewrap/wrap
0
But "/zvfs/start0/freewrap/wrap" is a directory.
With glob I see the file in the directory.
% glob /zvfs/start0/freewrap/wrap/*
/zvfs/start0/freewrap/wrap/start.tcl
It's on window and linux the same.
Is there a workaround?
Regards
Manfred
Dennis
When wrapping your application you need to specifically include any directory that you will be wrapping in your list of files to wrap.
For example, not only do you need to include:
/start0/freewrap/wrap/start.tcl
you also need to include
/start0/freewrap/wrap
So, your wrapping command might look like:
./freewrap myapp.tcl /start0/freewrap/wrap /start0/freewrap/wrap/start.tcl
Dennis
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 498 |
Nodes: | 16 (0 / 16) |
Uptime: | 70:15:30 |
Calls: | 9,814 |
Calls today: | 2 |
Files: | 13,755 |
Messages: | 6,189,494 |