-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
os.ls() can't open dir #848
Labels
Bug
This tag is applied to issues which reports bugs.
Comments
Can you run |
yes, the result as following:
|
And now try
|
Successfully it run.
|
Ok I think I know what it is:
You need to call .trim_space() But it's much better to use a function:
|
ok, thanks. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
V version:
0.1.10
OS:
CentOS 7.6.1810
What did you do?
using os.ls() to list files of the current directory.
What did you expect to see?
[user@centos os_info]$ ls
os_info os_info.v
What did you see instead?
[user@centos os_info]$ v run os_info.v |more
OsType:linux
Hostname:centos
HomeDir:/home/user/
ExePath:/home/user/code/v/examples/os_info/os_info
CurrentDir:/home/user/code/v/examples/os_info
Uname:Linux centos 3.10.0-957.21.3.el7.x86_64 #1 SMP Tue Jun 18 16:35:19 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
ls() couldnt open dir "/home/user/code/v/examples/os_info"
[]
============ running os_info ============
The text was updated successfully, but these errors were encountered: