Quantcast

[Gambas Bug Tracker] Bug #1074: Rdir failed to scan remote directories

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Gambas Bug Tracker] Bug #1074: Rdir failed to scan remote directories

bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1074&from=L21haW4-

Federico ALLEGRETTI reported a new bug.

Summary
-------

Rdir failed to scan remote directories

Type             : Bug
Priority         : Medium
Gambas version   : 3.9
Product          : Language


Description
-----------

updating Gambas from 3.8.4 (original Ubuntu repositories) to gambas 3.9.2 (gambas team repository), Rdir lost the ability to scan remote mounted folders

This code:

Public Sub Form_Open()
Dim oggetto As String
 
  For Each oggetto In RDir("/mnt/Stranamore/Dischi Stranamore 2007", "*.mp3")
    TextArea1.Text = oggetto & gb.CrLf & TextArea1.Text
  Next

End

works with Gambas 3.8.4, but no file was returned with gambas 3.9.2


this code (local folder):

Public Sub Form_Open()
Dim oggetto As String
 
  For Each oggetto In RDir(user.home, "*.mp3")
    TextArea1.Text = oggetto & gb.CrLf & TextArea1.Text
  Next

End


works on both the enviroments.


System information
------------------

v1p3r@linuxbox:~$ uname -a
Linux linuxbox 4.4.0-59-generic #80-Ubuntu SMP Fri Jan 6 17:47:47 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

v1p3r@linuxbox:~$ lsb_release -a
LSB Version: core-9.20160110ubuntu0.2-amd64:core-9.20160110ubuntu0.2-noarch:security-9.20160110ubuntu0.2-amd64:security-9.20160110ubuntu0.2-noarch
Distributor ID: Ubuntu
Description: Ubuntu 16.04.1 LTS
Release: 16.04
Codename: xenial

v1p3r@linuxbox:~$ cat /etc/apt/sources.list.d/gambas-team-ubuntu-gambas3-xenial.list
deb http://ppa.launchpad.net/gambas-team/gambas3/ubuntu xenial main
# deb-src http://ppa.launchpad.net/gambas-team/gambas3/ubuntu xenial main



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Gambas Bug Tracker] Bug #1074: Rdir failed to scan remote directories

bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1074&from=L21haW4-

Comment #1 by Benoît MINISINI:

Can you post the result of :

$ ls -la /mnt/Stranamore

Benoît MINISINI changed the state of the bug to: NeedsInfo.



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Gambas Bug Tracker] Bug #1074: Rdir failed to scan remote directories

bugtracker
In reply to this post by bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1074&from=L21haW4-

Comment #2 by Federico ALLEGRETTI:

v1p3r@linuxbox:~$ ls -la /mnt/Stranamore
totale 2180
drwxrwxrwx 2 root root       0 gen 30 12:41 .
drwxr-xr-x 5 root root    4096 gen  9 13:20 ..
drwxrwxrwx 2 root root       0 set  9  2011 ally_temp
drwxrwxrwx 2 root root       0 gen 29  2014 Dischi Stranamore
drwxrwxrwx 2 root root       0 feb  1 19:30 Dischi Stranamore 1
drwxrwxrwx 2 root root       0 gen 31 17:56 Dischi Stranamore 2
drwxrwxrwx 2 root root       0 gen 29  2014 Dischi Stranamore 2006
drwxrwxrwx 2 root root       0 gen 29  2014 Dischi Stranamore 2007
drwxrwxrwx 2 root root       0 set  9  2011 Dischi Stranamore 2008
drwxrwxrwx 2 root root       0 gen 29  2014 Dischi Stranamore 2009
drwxrwxrwx 2 root root       0 gen 29  2014 Dischi Stranamore 2010
drwxrwxrwx 2 root root       0 dic 23  2011 Dischi Stranamore 2011
drwxrwxrwx 2 root root       0 gen 29  2014 Dischi Stranamore 2012
drwxrwxrwx 2 root root       0 nov 28  2013 Dischi Stranamore 2013
drwxrwxrwx 2 root root       0 mag  5  2014 Dischi Stranamore 2014
drwxrwxrwx 2 root root       0 nov 17  2015 Dischi Stranamore 2015
drwxrwxrwx 2 root root       0 gen 29  2014 Dischi Stranamore 3
drwxrwxrwx 2 root root       0 gen 29  2014 dischi stranamore - copyleft - NOT TO PROGRAM
drwxrwxrwx 2 root root       0 set  9  2011 Dischi Stranamore Creative Commons
drwxrwxrwx 2 root root       0 set  9  2011 Dischi stranamore (tamponi)
-rwxrwxrwx 1 root root  619758 mar 12  2033 FIDITALIA 12 MARZO.mp3
drwxrwxrwx 2 root root       0 set  9  2011 Free Sound Effects
drwxrwxrwx 2 root root       0 set  9  2011 Joy Ride
drwxrwxrwx 2 root root       0 set  9  2011 Lavorazioni
-rwxrwxrwx 1 root root 1607575 dic  7  2009 libro ivano raf lungo.mp3
drwxrwxrwx 2 root root       0 set  9  2011 NON PROGRAMMARE
-rwxrwxrwx 1 root root     185 gen 16 19:35 PRS_OSE_settings.txt
drwxrwxrwx 2 root root       0 set  9  2011 Redazione
drwxrwxrwx 2 root root       0 dic 24  2014 Spot Stranamore
drwxrwxrwx 2 root root       0 set  9  2011 Stranamore_Autopromozione
drwxrwxrwx 2 root root       0 nov 29  2013 Stranamore_Autopromozione_2013
drwxrwxrwx 2 root root       0 feb  2 08:51 Stranamore_Database
drwxrwxrwx 2 root root       0 nov 14  2011 Stranamore_Database2011 su server2
drwxrwxrwx 2 root root       0 feb  2 11:59 Stranamore_DB_backup
drwxrwxrwx 2 root root       0 set  9  2011 Stranamore_Jingles_NO_ROTATION
drwxrwxrwx 2 root root       0 feb  1 19:50 Stranamore Notiziario
drwxrwxrwx 2 root root       0 set  9  2011 Stranamore_OraEsatta
drwxrwxrwx 2 root root       0 set  9  2011 Stranamore_Rubriche



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Gambas Bug Tracker] Bug #1074: Rdir failed to scan remote directories

bugtracker
In reply to this post by bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1074&from=L21haW4-

Comment #3 by Federico ALLEGRETTI:

that's the part of fstab to mount the share:

#monta lo share di radio stranamore
#01
//192.168.1.252/Stranamore /mnt/Stranamore cifs credentials=/root/.credQnap1,iocharset=utf8,file_mode=0777,_netdev,sec=ntlm,dir_mode=0777 0 0



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gambas-user
Loading...