• freewrap "file isdirectory"

    From Manfred Stelzhammer@21:1/5 to All on Wed Apr 19 19:01:07 2023
    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.

    Is there a workaround?

    Regards
    Manfred

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From gone2canines@gmail.com@21:1/5 to Manfred Stelzhammer on Sat Apr 29 16:52:37 2023
    On Wednesday, April 19, 2023 at 1:01:11 PM UTC-4, Manfred Stelzhammer wrote:
    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.

    Is there a workaround?

    Regards
    Manfred
    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.

    Dennis

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Manfred Stelzhammer@21:1/5 to All on Sun Apr 30 10:35:54 2023
    Hi

    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:
    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.

    Is there a workaround?

    Regards
    Manfred
    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.

    Dennis

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dennis LaBelle@21:1/5 to Manfred Stelzhammer on Sun Apr 30 07:13:15 2023
    On Sunday, April 30, 2023 at 4:35:59 AM UTC-4, Manfred Stelzhammer wrote:
    Hi

    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:
    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.

    Is there a workaround?

    Regards
    Manfred
    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.

    Dennis
    Manfred,
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Manfred Stelzhammer@21:1/5 to All on Sun Apr 30 20:53:26 2023
    Hi

    I know.
    I write all directorys in an file and wrap it with -f.

    My workaround is, I rewrite the lib which use the command.

    thanks

    Manfred

    Am 30.04.23 um 16:13 schrieb Dennis LaBelle:
    On Sunday, April 30, 2023 at 4:35:59 AM UTC-4, Manfred Stelzhammer wrote:
    Hi

    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:
    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.

    Is there a workaround?

    Regards
    Manfred
    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.

    Dennis
    Manfred,
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)