/    Sign up×
Community /Pin to ProfileBookmark

problem while adding the string.

Hi Experts,

The following code is returning wrong output

[B]AveryPathUtils.getFilePath = function(parentFolder, fileName)
{
return new File(parentFolder + “/” + fileName);
}[/B]

here parentFolder is /t
and filename is /test/outputs/previewTestProject/3112/0/04850

but final output we are getting is /c/t/test/outputs/previewTestProject/3112/0/04850

Here we are getting /c extraw in the beginning.
What could be reason. Thanks in advance.

Regards,
sameer

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@sameerkariwal_gauthorMar 01.2012 — Hi,

we get /c/t/test/outputs/previewTestProject/3112/0/04850

That is extarw /c is added in the begening while calling new File().

Does any one have any clue about this. it is really starange that hoe

extraw /c is getting added here.

Please give your all expert advise. Thanks in advance.

Regards,

sameer
Copy linkTweet thisAlerts:
@nap0leonMar 01.2012 — C-drive perhaps?

Is the full path to the file:

c:ttestoutputspreviewTestProject31124850
Copy linkTweet thisAlerts:
@sameerkariwal_gauthorMar 02.2012 — Hi,

t is the drive name . and it is mapped to a shared folder .

it should not add drive c . It is really making me crazy.

Please give your expert advise.

Regards,

sameer
×

Success!

Help @sameerkariwal_g spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.14,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...