[Scilab-users] restriction for fileinfo (?)

P M p.muehlmann at gmail.com
Wed Sep 29 10:58:44 CEST 2021


..typo: it is scilab 6.1.0 that I use in this case

Am Mi., 29. Sept. 2021 um 10:24 Uhr schrieb P M <p.muehlmann at gmail.com>:

> Hallo Samuel,
>
> the whole thing is strange, since I also could create and read a path name
> on a win7 machine using Scilab 6.0.1.
> Here the path was in total 287 characters long, while the filename was 77
> characters long.
>
> However I still have issues:
> - Win10
> - Scilab 6.0.1
>
> // read the path name from a txt file
> fd = mopen("fileList.txt",'r');
> files = mgetl(fd,-1);
> mclose (fd);
>
> // nr of files
> nrOfFiles = size(files)(1);
>
>
> for i = 1:nrOfFiles
>    [fileInfo, err]        = fileinfo(files(i));
>    dateLastMod(i,:) = getdate(fileInfo(i,6)(:,[1 2 6]);
> end
>
>
> I do not see any strange characters in the folder or file name structure.
>
> e.g.: specific german characters "ä", "ü", "ß" etc...except of maybe
> white-space-character
>
> folders can start with characters or numbers..e.g.:
>
> F:\CATIA-Parts\ExampleParts\BasicAircraft\000_fromMax\2029_13_98_-_06-This-is-model_name\04-SubmodelName\funktion\04_PartName\Part\PartVersion\04-the-actual-super-duper-long-file-name_SN0099-Part
> version.CATPart
>
> BR
>
>
>
>
>
>
>
>
>
>
>
>
>
> Am Di., 28. Sept. 2021 um 13:04 Uhr schrieb <sgougeon at free.fr>:
>
>> Philipp,
>>
>> No problem for me with Scilab 6.1.1 on Windows 10 for a file in a
>> directory whose name is 272-character long, when calling fileinfo() with
>> the huge name in the path.
>> So the issue may come from elsewhere. May be from a symbolic link (no
>> test done on my side)?
>>
>> Samuel
>>
>> ----- Mail d'origine -----
>> De: P M <p.muehlmann at gmail.com>
>> À: International users mailing list for Scilab. <users at lists.scilab.org>
>> Envoyé: Tue, 28 Sep 2021 11:13:30 +0200 (CEST)
>> Objet: [Scilab-users] restriction for fileinfo (?)
>>
>> Dear,
>>
>> is there a restriction in path length when using fileinfo() ?
>> I find files paths with a total length of > 256 characters.
>>
>> ../..
>> _______________________________________________
>> users mailing list
>> users at lists.scilab.org
>> http://lists.scilab.org/mailman/listinfo/users
>>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20210929/21462966/attachment.htm>


More information about the users mailing list