[SERVER-15690] removeFile(filename) Created: 16/Oct/14  Updated: 16/Oct/14  Resolved: 16/Oct/14

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Paul Cooling [X] Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

I enter;
removeFile(paul.txt)
and get "ReferenceError: paul is not defined"

The file is located in folder that pwd() shows.
It seems to ignore the suffix as I get the same error if enter;
removeFile(paul)



 Comments   
Comment by Paul Cooling [X] [ 16/Oct/14 ]

Hi Scott:
I am evaluating MongoDB for our company.
It would be good to add examples for all the commands.
Also if add path it wants the path in unix not windows format which
would be good to specify

Thanks for the solution.

I will put the next issue in the proper place.
Paul Cooling

Comment by Scott Hernandez (Inactive) [ 16/Oct/14 ]

You need to pass in a string. What you have provided is an expression to be interpreted, which failed.

Try

removeFile("paul.txt")

Note:
The SERVER project is intended to be used for reporting bugs or feature suggestions for the MongoDB server.

In future, please post MongoDB-related support questions like this on the mongodb-users group (http://groups.google.com/group/mongodb-user) or Stack Overflow / ServerFault. MongoDB team members are active in these forums, and you can also benefit from the experience of other MongoDB users.

Generated at Thu Feb 08 03:38:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.